in reply to file::find problems accessing files on a network

I don't see how your code works at all, whether local or network directories. File::Copy requires two file arguments, it does not accept a directory as the second argument like command line copy. And FYI, find() accepts a list of directories, so there's no need to use a for loop to iterate through your list of source directories.

Also, I once wrote a file sync utility for Windows. You may have to tweak it for your specific purpose if you decide to use it, though it may be overkill for your purposes.

Update: Hmm, I just tested File::Find::copy on Windows copying a file to a directory, and it works, so nevermind about that. I wasn't aware that it accepted a directory as the second argument (though it does not work that way on Unix).

  • Comment on Re: file::find problems accessing files on a network