I have the following directory structure:
Local
C:\Development\ferrets.mywebsite.net\
C:\Development\ferrets.mywebsite.net\templates\pages\
C:\Development\shared_library\
Remote
/home/html/ferrets.mywebsite.net/
/home/html/ferrets.mywebsite.net/templates/pages
/home/html/shared_library
I point WinSCP to
C:\Development\ and
/home/html/, then highlight the three directories listed on my local machine and click on "Keep remote directories up to date". The options I have selected are:
- Update subdirectories
- Existing files only
- Selected files only
I also use Subversion, so like I good boy should I have the following mask to help WinSCP ignore useless directories:
Now all is usually fine and good; I make changes and they are automatically transferred - as they should be. However I've noticed a problem when I try to update templates and scripts with the same name.
For example, lets pretend I have the following files:
C:\Development\ferrets.mywebsite.net\import_new_orders.php
C:\Development\ferrets.mywebsite.net\templates\pages\import_new_orders.tmpl
I can edit the .tmpl file as much as I like, and each time I save it is uploaded correctly. Then I decide to edit the .php file. No problem! That too is uploaded correctly when I save. But now! Whenever I edit the .tmpl file and save WinSCP does nothing. It doesn't report detecting a change in my
\templates\pages\ directory and it doesn't upload the changed file.
I have confirmed that the timestamp in the templates file is being updated. I have also tested and retested the order of events. If I start "Keep remote ..." update the .php file and then update the template, the template does not upload. If I then stop and restart "Keep remote ..." and re-save the template it uploads fine.
So in summary: this only occurs when I modify a script file with the same name as a template file. This affects multiple machines I have on hand (3 in total, WinXP and Win2K) so I'm sure it isn't something specific to my main box.
Some other stats that may help you:
WinSCP is monitoring 94 directories and approx 600 files
Any help would be appreciated!