in reply to Find whether a file is copied to USB

I am trying to implement the idea to detect whether a file is copied to a USB device or not

if (-e $myfile) {print "I got it!!!"};

... or

unless (-e $myfile) {print "Hey!, What have you done with my file?"}