I
I
Ilya2018-12-10 14:32:04
Python
Ilya, 2018-12-10 14:32:04

How to set up exceptions in Sublime Text SFTP plugin?

I use the Sublime Text 3
editor. The SFTP plugin is installed in the editor ( https://wbond.net/sublime_packages/sftp).
In the config settings for the site, you can specify templates for the names of directories and files that do not need to be processed. Templates are specified in a Python-compatible format. But I can't seem to solve the specific problem. Namely:
- I need to exclude from processing the folder at the root with the name myfolder (along with its contents)
- but do not exclude other folders with the same name.
Now the config looks like this:

"remote_path": "/www/mysite.com/",
"ignore_regexes": [
    "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
    "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
    "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini",
    "myfolder"
],

But with this setup, I get an exception not only for the /www/mysite.com/myfolder/ folder, but also for the /www/mysite.com/anotherfolder/myfolder/ folder (and others like it).
Please help me make a rule.
UPD
Important clarification:
"remote_path": "/www/mysite.com/myfolder/site/
" remote_path also has a folder with the same name. And it seems to affect how exceptions work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arman, 2018-12-10
@Arik

/myfolderor /myfolder/not working?

A
Alex F, 2018-12-10
@delvin-fil

But something like this:
5c0e8c63173d9281598692.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question