You're right, I'm going to change it to return false when there's an error with stat and let the normal copy function fail if it's a real issue.