Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: compare two folders and copy folder/file if not found on target else log that file or folder

by ww (Bishop)
on Feb 20, 2014 at 22:13 UTC ( #1075660=note: print w/replies, xml ) Need Help??


in reply to Re^2: compare two folders and copy folder/file if not found on target else log that file or folder
in thread compare two folders and copy folder/file if not found on target else log that file or folder

OK, that's what I suspected and others discerned to be your meaning. Now let me give you a 'simple english' version that's wordy but utterly unambiguous:
"I'm comparing two folders. If a file or subfolder is NOT found in the second but is present in the first, copy the missing item from the first to the second; otherwise... simply log that a file or dir was found in BOTH folders."

Note that this expression does NOT concern itself with items found in the second folder, but not the first. That's a different requirement and requires a different problem statement.

As with programming, communicating anything even mildly complex depends heavily on clarity and precision.

Come, let us reason together: Spirit of the Monastery

Quis custodiet ipsos custodes. Juvenal, Satires

  • Comment on Re^3: compare two folders and copy folder/file if not found on target else log that file or folder

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1075660]
help
Chatterbox?
[1nickt]: Corion this looks good, from the pod: "there are 9000+ variations that are detected correctly in the test files (see t/data/* for most of them). If you can think of any that I do not cover, please let me know."
[TCLion]: some moron put the date like this : Mon Feb 20 09:31:30 2017
[Corion]: 1nickt: Yes, the module sounds promising indeed
[1nickt]: "putting the date in correct order" how?
[Corion]: TCLion: Whee ;)
[TCLion]: need to put like this : 2017-02-20 09:30:53
[1nickt]: That's why I asked if you are using DateTime. It has a large number of supporting modules (the author likes the term 'eco-system') so if you are already creating a DateTime obj from your dates, this module would read in the mnoron-formatted 1s seamlessly
[TCLion]: when I put the date together it looks like : 2017-Feb-24 (month is the problem)
[1nickt]: good luck, then.
[TCLion]: looking at DateTime documentation in monastery now

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2017-03-23 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (288 votes). Check out past polls.