SublimeText2-FTPSync icon indicating copy to clipboard operation
SublimeText2-FTPSync copied to clipboard

Ignore images, zip etc on Download

Open Luc45 opened this issue 9 years ago • 1 comments

I want to keep my local and FTP files synchronized, but only the important files, such as .php etc

I created an "ignore" list that includes all binaries, it might be useful to someone:

{
	"ignore": "ftpsync\\.settings|\\.gitignore|\\.git|Sublime Text 2/Packages|\\.raw|\\.exe|\\.mpi|\\.pdf|\\.psd|\\.ai|\\.doc|\\.xls|\\.docx|\\.xlsx|\\.7z|\\.zip|\\.rar|\\.tar|\\.gz|\\.gzip|\\.ace|\\.bmp|\\.jpg|\\.jpeg|\\.ico|\\.png|\\.gif|\\.tiff|\\.pic|\\.tga|\\.wmv|\\.avi|\\.mkv|\\.mp4|\\.mpg|\\.mpeg|\\.wav|\\.mp3|\\.ac3|\\.flac|\\.3gp",
}

Just paste it to Preferences -> Package Settings -> FTPSync -> Settings - User

Now I can sync my site 100x faster than before, literally

Luc45 avatar Dec 13 '16 19:12 Luc45

Use this to also ignore wp-admin and wp-includes folder, if you work on Wordpress:

{
	"ignore": "ftpsync\\.settings|\\.gitignore|\\.git|Sublime Text 2/Packages|\\\\wp-admin\\\\|\\\\wp-includes\\\\|\\.raw|\\.exe|\\.mpi|\\.pdf|\\.psd|\\.ai|\\.doc|\\.xls|\\.docx|\\.xlsx|\\.7z|\\.zip|\\.rar|\\.tar|\\.gz|\\.gzip|\\.ace|\\.bmp|\\.jpg|\\.jpeg|\\.ico|\\.png|\\.gif|\\.tiff|\\.pic|\\.tga|\\.wmv|\\.avi|\\.mkv|\\.mp4|\\.mpg|\\.mpeg|\\.wav|\\.mp3|\\.ac3|\\.flac|\\.3gp",
}

Luc45 avatar Dec 13 '16 19:12 Luc45