I drag and drop a folder into another by mistake in FileZilla.
~/big_folder
~/some_other_folder
The folder got moved is a very huge one. It includes hundreds of thousands of files (node_modules, small image files, a lot of folders)
What is so weird is that after I release my mouse, the moving is done. The folder "big_folder" is moved into "some_other_folder".
~/some_other_folder/big_folder
(there is no big_folder
in the ~/
after moving)
Then I realize the mistake and try move back but it fails both on FileZilla and terminal.
Then I have to cp -r
to copy files back because there are server-side codes accessing those files in ~/big_folder
And it takes like forever to wait ...
What should I do?
BTW, here are the output from FileZilla (it's the failure of the moving back):
Status: Renaming '/root/big_folder' to '/root/some_other_folder/big_folder'
Status: /root/big_folder -> /root/some_other_folder/big_folder
Status: Renaming '/root/some_other_folder/big_folder' to '/root/big_folder'
Command: mv "big_folder" "/root/big_folder"
Error: mv /root/some_other_folder/big_folder /root/big_folder: received failure with description 'Failure'
received failure with description 'Failure'
.mv /root/some_other_folder/big_folder /root/big_folder
. What error message do you get?cp -al
mv vs cp
question is addressed, but I would love to hear why he was able to move the folder in one direction instantly but not the other.