Fix a bug in FileTools

In moveFile method, add operations when from is a file.