使用命令rsync
具体命令:rsync --delete-before --force -r empty_dir/ to_delete_dir/
转载于:https://www.cnblogs.com/yanghangjunHobot/p/8444641.html