A Safer Way to Copy a Directory

This is a Perl version of the VB FileMirror class shown earlier on this site. The class helps you write scripts to (semi) safely mirror or move a file system from one directory to another. It does this by building the correct destination paths, making destination directories, and deleting files only after they appear to have been copied over.

Docs are in FileMirror.txt, attached.

DriveGMover.pl is a script that uses the class.

test.pl.txt1.68 KB
FileMirror.txt1.79 KB
FileMirror.pm4.11 KB
driveGmover.pl.txt8.15 KB