meganz / MEGAsync

Easy automated syncing between your computers and your MEGA Cloud Drive
Other
1.59k stars 277 forks source link

Files that start with a dot (.) do not upload #748

Closed hl2guide closed 1 year ago

hl2guide commented 1 year ago

Files that start with a dot (.) do not upload and are ignored by the app.

e.g. .vscode.rar

jx-mega commented 1 year ago

Hello,

files that start with a dot are in the excluded file names list by default in case users are syncing a drive with an unsupported or not adequate filesystem type.

You can add/delete a file/folder name, an absolute path (wildcards * and ? are allowed) or choose which file or folder you want to exclude/include from synchronization by going to Settings/Preferences - Folders - 'Excluded file and folder names' - click "add/delete"

Note that the file/folder name must be in exactly the same format as in your local system and is case-sensitive.

The new excluded file/folder name will be taken into account when the application starts again.

cgbeutler commented 8 months ago

Ran into this using Obsidian. This is really annoying for programs that use '.' folders to store settings that should be backed-up (like obsidian md, who's settings folder must start with a dot.)

It'd be nice to have a way to make exceptions to blacklist rules, but since this 'bug' has been reported twice and just closed unceremoniously, here are some workarounds:

  1. Add OS-directories to the blacklist that use a '.' prefix. Here is a list pulled from common programmer lists (2023):
    ._*
    .AppleDB
    .AppleDesktop
    .AppleDouble
    .com.apple.timemachine.donotpresent
    .DocumentRevisions-V100
    .DS_Store
    .fseventsd
    .LSOverride
    .Spotlight-V100
    .TemporaryItems
    .Trashes
    .VolumeIcon.icns
  2. Add any other '.' ignores for programs that may conflict.
  3. Remove the '.*' black list rule

Another option is to make a symbolic link (that's name starts with '.') to a folder that doesn't get black-listed. This method, unfortunately, will require setup on each and every computer, but once done it should stay synced normally.