Question:
Hello, i use the function to synchronize a remote tree with a local tree. It all works fine expect 1 folder. I have who are fine (all sub-folders are on the ftp) then 1 who where all sub-folders are missing, and after that all folders are fine again. I have no idea how or why...
Regards Jo
Are you using an EventCallbackObject ( http://www.chilkatsoft.com/refdoc/vcCkFtp2Doc.html#prop030 )? Perhaps you are setting the "abort" or "skip" flag in one of your overrides?
Another issue could be that this local directory/directories have some strange permissions set and your program is not allowed to read/access them.
I am not using an EventCallbackObject. The code is pretty simple. We generate a bunch of folders and some sub folders example:
1134 └ Doc └ Images └ image1.png 1135 └ Doc └ Images └ image.pngAll this is in a function, and there is no display. Just an exe who runs once a day in order to keep the directories up to date.
I also checked the permissions and don't see any strange stuff on the generated directories. The tree structure is fine on the local machine. But on the ftp i only see the directory 1134, not the sub directories. I tried to run several times the script. Every time it is the same directory that isn't uploaded.
My code is very similar to the examples : http://www.example-code.com/vcpp/ftp_syncRemoteTree.asp
I am just guessing (I do not work for Chilkat), could it be there is another program (the program that creates the files or antivirus for example) that holds an exclusive lock on this directory?
Have you dumped the lastErrorText ( http://www.cknotes.com/?p=423 ) after calling syncRemoteTree? Even if syncRemoteTree returns true, the lastErrorText may contain valuable info.
You may also want to set the debugLogFilePath ( http://www.chilkatsoft.com/refdoc/vcCkFtp2Doc.html#prop027 ) and sessionLog ( http://www.chilkatsoft.com/refdoc/vcCkFtp2Doc.html#prop044 ) options. Maybe inspecting those will show you the reason.
The synchronize starts only when all the files are created. They all exists. (more than 100 directories) I will try to do debug, but i can't simulate this error on my computer.
Sorry, i just tried again, and only the main directories are made now. But all the sub directories aren't there. Could there be a problem with the permissions on the ftp ?
After adding that debugLogFilePath, the synchronization is slower, but all files, directories, sub directories are there. Still don't know the reason why it didn't worked before. Maybe the client changed something on their server. Thanks for helping.