login about faq

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

asked Dec 26 '12 at 03:30

Joe's gravatar image

Joe
6225


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.

link

answered Dec 26 '12 at 04:11

Gert's gravatar image

Gert ♦
629141824

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.png
All 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

link

answered Dec 26 '12 at 04:29

Joe's gravatar image

Joe
6225

edited Dec 26 '12 at 04:34

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.

link

answered Dec 26 '12 at 04:36

Gert's gravatar image

Gert ♦
629141824

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.

link

answered Dec 26 '12 at 04:40

Gert's gravatar image

Gert ♦
629141824

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 ?

link

answered Dec 26 '12 at 04:48

Joe's gravatar image

Joe
6225

edited Dec 26 '12 at 05:15

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.

link

answered Dec 27 '12 at 03:24

Joe's gravatar image

Joe
6225

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×7
×3
×2

Asked: Dec 26 '12 at 03:30

Seen: 1,096 times

Last updated: Dec 27 '12 at 03:24

powered by OSQA