login about faq

Hello,

I would like to know if there is a way to know if a file exists in the remote server. My server has a tree with thousands of images, and weekly I need to update only some images, but to consume less upload time, I would like to check the existence of each image prior to upload them. I am using the PutFile method.

I have read about the SyncRemoteTree method, but I believe I can't use it, because I dont't want to upload all files of my local tree, only the files that match a criteria (thumbnail images that my application generates on runtime), and they are copied with a different name to the remote server.

Thanks in advance for any help.

Isis

asked May 21 '13 at 10:09

Isis's gravatar image

Isis
6223


Hi,

You can use eg: 'Get FTP Directory Listing Information'.

Put the loop into a funtion and at line 'if (CkFtp2_GetIsDirectory(ftp,i) = True) then' call the same function recursively.

I added all this into a string list and then I am syncronising with total flexibility.

Allan allan@ssmiths.com

link

answered Jul 19 '13 at 09:20

AllanF's gravatar image

AllanF
1334

Hello Allan,

Thanks for your answer.

Could you share this code?

Isis

isis@german-engenharia.com.br

link

answered Jul 22 '13 at 08:11

Isis's gravatar image

Isis
6223

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:

×131
×90
×51
×9

Asked: May 21 '13 at 10:09

Seen: 1,376 times

Last updated: Jul 22 '13 at 08:11

powered by OSQA