in reply to Re: Function to replace a old file with newer version
in thread Function to replace a old file with newer version

Thanks. I have to do this recursively hence looking for a perl function. I found File::Xcopy
update|UD - copy files only if 1) the file exists in the target and 2) newer in time stamp
http://search.cpan.org/~geotiger/File-Xcopy-0.12/Xcopy.pm#xmove($from,_$to,_$pat,_$par)
  • Comment on Re^2: Function to replace a old file with newer version

Replies are listed 'Best First'.
Re^3: Function to replace a old file with newer version
by mr_mischief (Monsignor) on Nov 26, 2008 at 15:50 UTC
    I'm not familiar with unison, but it probably can use recursion. I know rsync definitely does. Use Perl if you want, but it's not the only language that allows utilities to be written that recur through directories. Several utilities already exist which do that.