Compare and sync files into another local folder

Advertisement

shahfahad044
Joined:
Posts:
1

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

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?

Reply with quote

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).

Reply with quote

martin
Site Admin
martin avatar

Re: Compare and sync files into another local folder

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

Reply with quote

Advertisement

You can post new topics in this forum