mv: cannot move './wpress/wp-content' to './wp-content': Directory not empty
- User
mv: cannot move './wpress/wp-content' to './wp-content': Directory not empty
- Assistant
The error message you're seeing indicates that you are trying to move a directory (
./wpress/wp-content) to a new location (./wp-content), but the destination directory (./wp-content) is not empty.Here are a few ways to resolve this issue:
-
Delete the Destination Directory: If the contents of the destination directory are no longer needed, you can delete it and then proceed with the move command. Be very careful with this option, as it will delete all files within that directory.
rm -rf ./wp-content mv ./wpress/wp-content ./wp-content
-