login about faq

There is a post about removing local files, which not exist at a remote server (case#2):

http://www.cknotes.com/?p=383

This only works, when the FTP Server is not ReadOnly, because if a directory is deleted on the server, an error is thrown. The SyncRemoteTree tries to generate this directory and this fails. This cannot filtered with VerifyUploadDir and also not with the BeginUploadFile. Does anybody know a easy way to get this task done. Option -99 also does not work.

Thanks in advance,

Stefan

asked Aug 18 '13 at 12:59

mazApp's gravatar image

mazApp
1123


I don't fully understand. If the FTP user account is read-only, then it should not be able to delete files on the server and I don't see any way around that.. (I must be misunderstanding what you are saying..)

link

answered Aug 19 '13 at 12:19

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

I do not want to delete files on the server, but I want to delete files at the client, which are not any more at the server. The procedure is suggested in the post http://www.cknotes.com/?p=383. In Short: Simulating an sync upload, but when get to the "beginUpload" step, delete the local file instead of uploading the file. In that way, someone should delete the locals files, which are not at the server any more.

BUT, this does not work, when hole directories are deleted at the server.

Hope, this makes it more clear and thanks for thinking about a solution ;-)

Best regards,

Stefan

link

answered Aug 19 '13 at 12:26

mazApp's gravatar image

mazApp
1123

Stefan,

That blog post was written before mode 99 of the SyncLocalTree method was available. See the online reference documentation. You should be able to call SyncLocalTree w/ mode = 99 to delete local files on the client-side that do not yet exist on the server.

link

answered Aug 19 '13 at 14:36

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Hi Chillkat,

I tried it with -99 but it seems not to work with the iOS 6 Version. It looked like, just not implemented. If you say, it should worl alos in iOS Version, I will try it again.

Thanks a lot !

Stefan

p.s. Because I have also the problem with "Umlaute" (see support mail), I do the -99 thing diffent with downloading the server tree in xml and look, if the file is in the xml tree. This should work until tomorrow (german time ;-)

link

answered Aug 19 '13 at 14:40

mazApp's gravatar image

mazApp
1123

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:

×90
×10
×9
×1
×1

Asked: Aug 18 '13 at 12:59

Seen: 1,441 times

Last updated: Aug 19 '13 at 14:40

powered by OSQA