Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Compare and sync files into another local folder

I lack an explanation, which of these folders are local and which are remote.
Guest

Re: Compare and sync files into another local folder

martin wrote:

Actually the requirement is not really clear to me. Can you elaborate? Do you want to download only those remote files that are not in folderA yet?


Thanks for your reply;

I have got three folders Folder 01 where new files keep coming in which should be moved to Folder 02 where they sit until processed (only name change of '_processed' is added) and moved to Folder 03. I need to copy files which are not present in Folder 02 AND Folder 03 (In Folder 03 the name will be slight changed but I want these excluded as well).
martin

Re: Compare and sync files into another local folder

Actually the requirement is not really clear to me. Can you elaborate? Do you want to download only those remote files that are not in folderA yet?
shahfahad044

Compare and sync files into another local folder

"We are trying to implement a script which will compare all files in a local folder to that of the remote folder. But sync those files into another folder in local machine but not to the source local folder.

Example:
Our scenario is, the remote files should be downloaded into folderA. And then they will be processed and sent to FolderB. But in some exception cases all files may not be downloaded into folderA. That's why to confirm all files were downloaded into folderA without fail, we need to verify all files at remote location were downloaded into folderB ultimately.

That's why, we need to verify all remote files against files in folderB and then download only missing files into folderA"


P.S - Another user on this forum with the name 'zenpie9' posted exactly the same question somewhere else, I will just post his question here with due Credit and Thanks to him.