Close #4: added check for move file/folder operations