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.

Attachment Size
test.pl.txt 1.68 KB
FileMirror.txt 1.79 KB
FileMirror.pm 4.11 KB
driveGmover.pl.txt 8.15 KB