Sublime Forum

Problem with ignoring specific folders in SFTP config file

#1

I have a folder in the root of my project called “media”, where all images and PDF files are saved, I don’t need to sync those files.

I have ignored the folder with a ignore regex: “/media/”, but this will also ignore the folder “/core/tinymce/plugins/media/”.

How do I set it, so its only the root folder?

0 Likes

#2

If it’s a regex, using ^/media/ would make it match only a /media/ at the start of a path and would not match inside of a path, so you might try that. The ^ is a regex anchor that only matches at the start of the string being matched (in this case, the file paths).

I’m not in a position to test it at the moment or I could tell you for sure.

1 Like

#3

Thx a lot, that did the trick…

0 Likes