SamKirkland / ftp-deploy

Deploy websites over FTP with one command line
MIT License
89 stars 43 forks source link

How to include only some subdirectories in local dir? #24

Open pshemek opened 2 years ago

pshemek commented 2 years ago

I need to include only some paths from my local dir and exclude everything else. Like only the custom theme subfolder.

themes/custom_theme
themes/other_theme

The idea would be like this or similar: --local-dir ./public/wp-content/themes/ --include custom_theme/**/*

However, it looks like there's no --include flag. I was trying to use --exclude with negative globs but no luck. --local-dir ./public/wp-content/themes/ --exclude !custom_theme/**/*

Is this even possible with this tool?

Thanks.