lftp reverse mirror silently skips files in subfolders
I'm using lftp (through cygwin) to push content to an ftp-only web-server. It works intermittently to upload (reverse mirror) files to a server.
Any idea why this would occasionally skip files changed in a subfolder, but not skip files changed in the home directory?
Details: I'm using the reverse mirror mode, which recursively pushes a local folder up to the server instead of downloading it from the server. Throughout the web, this is the recommended option for recursive upload.
Here's the full script I'm using...
lftp -c "set ftp:ssl-allow no;
set ftp:list-options -a;
mirror --reverse \
--exclude-glob .*swp \
--exclude-glob .*swn \
The lftp seems to work intermittently. For example, I will run the command twice, and it skips the changes, then the third time it works, correctly copying the changed files up to the server.
If I run an ls -R (as suggested by a stackoverflow user), the upload always works successfully.