Filezilla lets to duplicate files with utf8 filenames in same folder - filezilla

When I'm uploading all folder tree with all files, filezilla corrupts files with utf8 filenames. It writes them there, the files are OK, but they isn't served by nginx.
When I open some folder and select files from my computer same folder, draging them by hand, they duplicates, but these new files, are shown by nginx!
So if I originally uploaded 6 files to current folder when uploading all folders tree, then opening just this one current folder Filezilla lets me again to upload same 6 files, but it becomes as 12 files. When I select to drag files again, it won't become 18, Filezilla overwriting these 6 which I had draged by hand, leaves another 6 untouched.
I have about 2000 different folders in my folders tree, with files inside. When I upload all folder tree, no files which has utf8 in filename are shown by nginx. When I open every dir and redrag files by hand, they start work on nginx, also they are draged as new ones in that folder as I said before.
Resume:
Filezilla uploading files somehow wrong when uploading all folder tree... But Correctly when dragging only files.

I googled for you, and found this advice:
I am not sure if it solves your problem, but try under "File
server manager" "character set" and there force UTF-8.

Related

How to check whether a folder exists or not in gcp cloud storage out of 1 million folders

For example I have structure like this.
bucketname/checked/folder1/some files
bucketname/checked/folder2/some files
bucketname/checked/folder3/some files
bucketname/checked/folder4/some files
bucketname/checked/folder5/some files
bucketname/checked/folder6/some files
bucketname/checked/folder7/some files
bucketname/checked/folder8/some files
bucketname/checked/folder9/some files
bucketname/checked/folder10/some files
bucketname/checked/folder11/some files
......
......
bucketname/checked/folder-1million/some files
Now,
1. If I have to check whether folder99999 exists or not. So,what would be the best way to check it (we have information of folder name - folder99999) ?
2. If we simply check path that exists or not, and if not then it means, folder don't exists. would it work fine If we have millions of folders?
3. Which data structure gcp uses to retrieve the folder data ?
The true answer is this one provided by John: folder doesn't exist. All the files are stored at the root directory (bucket level) and the file name is the full path. By human convention, the / is the folder separator and the console display fake folders.
If you haven't files in a "folder", the "folder" doesn't exist, it's not interpreted/deduced from the name fully qualified path. The folder is not a Cloud Storage resource
It's also for that reason that you search only by path prefix
However, it depends what you want to check. If you exactly know which folder you want to check and validate, and if there is at least one file in it, you can directly list the files with the folder path as prefix.

Proper way to zip xlsx-file from directory using Info-Zip's Zip utility

I’m using Zip utility from the Info-Zip library to compress the tree of catalogs to get xlsx-file.
For that I’m using the next command:
zip -r -D res.xlsx source
source - contains the correct directory tree of the xlsx file.
But if you then look at the resulting file structure, the source directory will be included in the paths of all files and directories at the top level, and MS Office Excel will not be able to open this file. This is a well known problem. To avoid it zip.exe needs to be inside of the dest directory.
The problem is that I want to use the source code of this utility in my project, so this leads me to be unable to call my process, which will be responsible for compressing directories, to get xlsx files from these directories.
I’ve tried to find a place in the zip source code, where the parent catalog appending on the top-level happens. But seems
it is done implicitly.
Who can suggest how it can be done?

How to make a .bat to move files in a folder to a different folder, based on a text file listing the files to be moved?

I have a lot of files in one folder that I want to move to another folder. I have the files I want moved listed in a text file. Is there a way I can make a .bat so the files listed in the text file get moved to another folder?
I found this https://superuser.com/questions/355584/how-to-delete-files-from-a-folder-using-a-list-of-file-names-in-windows where this code
for /f "delims=" %%f in (files_to_delete.txt) do del "%%f"
sort of does I want, meaning that the batch uses a text file to process files, except it deletes the files. How do I modify this code so the files are moved to another folder?
Another question, the above code deletes files without going through the recycling bin. So how do I modify the code so when it deletes, the files get moved to the recycling bin. If that happens, then I can easily drag it out to a new folder. I'm a newb using Windows 10. Thank you.

Installing OpenCart extensions locally

When installing OpenCart extensions, you´re generally given a bunch of folders that should be copied to the root directory and the extension files will find their way to the right subfolders. This works great in FTP software, but on a local installation (Mac OSX) using Finder, this operation makes Finder want to overwrite the folders completely, deleting the actual site and just keep the extension.
I can hold Alt when dragging the folders and it will give me the option to not overwrite, the problem is I have hidden files visible, which means there's now a .DS_STORE file in each folder and the ”Hold ALT”-approach doesn’t work in case there are ANY duplicate files in any of the folders.
I’m sure someone out there has stumbled upon the same problem, any ideas for how to solve such a simple but annoying problem? I do not wish to use FTP software for local file management.
I have the same problem, and i found 3 different ways to solve this:
a - use another file manager, i personally use "Transmit" to do this sort of things;
b - use terminal, like: ditto <source> <destination>. Or easier way just type ditto, and drag the source folder, then drag the destination folder, all inside source will merge inside destination;
c - unzip the plugin, inside the OC folder using the terminal, like: tar -zxvf plugin.zip;

Uploading files with an ImageField and saving them to a static location

I have a problem with my app here. My configuration is as such I can upload a new release and symbolically link it for production -- however, this means every time I upload a new release, all of the photos that were uploaded in any parts of my entire project are wrapped into the old release and disappear.
How can I save these files to a static file location which does not get wrapped in the release? Thanks in advance.
I guess best for this is keeping your media files out of your source project folder, you could eg have a structure like:
myproject
|
|----media
|----src
There's no need to have the media folder in the same directory as your source code, apps etc. So you have a solution where the dir with your release only contains static files! The same applies to the database, if you are using sqlite... Have a look at this for a more detailled structure!
Of course this no must, but experience shows it makes live much easier!