MEGAsync icon indicating copy to clipboard operation
MEGAsync copied to clipboard

Cannot exclude path with square brackets (invalid path)

Open redactedscribe opened this issue 3 years ago • 3 comments

As the title says, trying to add an exclusion for a path containing a square brackets isn't possible. MEGAsync complains with "Please enter a valid file name or absolute path".

Example path: D:\MEGAsync\BAK\Projects\[unnamed project]

Removing the closing bracket and pressing OK will allow the path to be accepted, indicating that the bracket is the issue. Interestingly, if instead you only remove the opening bracket, the path remains invalid.

The only way I've been able to make the exclusion be accepted (and I assume effective) is by adding an * before the opening bracket: D:\MEGAsync\BAK\Projects\*[unnamed project]. Of course, this is a broader exclusion than I need, but for my purposes, it should be working.

MEGAsync 4.6.8 64-bit Windows 11

redactedscribe avatar Jul 25 '22 21:07 redactedscribe

Hello. We've tested the issue and managed to reproduce the behavior you reported. It looks like folders starting with '[' are rejected when you try to add them to the exclusion list.

Our developers have been informed and are working on it. This will be fixed as soon as possible.

This kind of feedback is greatly appreciated - it helps improve our apps and makes MEGA a better platform.

dbm-mega avatar Jul 27 '22 07:07 dbm-mega

It looks like folders starting with '[' are rejected when you try to add them to the exclusion list.

As I noted: "if instead you only remove the opening bracket, the path remains invalid.", so it seems that a ] present is problematic too.

Our developers have been informed and are working on it. This will be fixed as soon as possible.

Thank you.

redactedscribe avatar Jul 27 '22 12:07 redactedscribe

Thank you for your comments. We have made sure that our developers have also this information.

dbm-mega avatar Jul 27 '22 12:07 dbm-mega

Hi @redactedscribe, we have an update coming up that fixes this, in fact it's a big change to how exclusions work, moving to a .megaignore file in the root of the sync. You can read about and perhaps help test it here: https://github.com/meganz/MEGAsync/issues/770 thanks

mattw-mega avatar Jan 09 '23 03:01 mattw-mega