Compare two files based on
- relative paths
- last updated date
- size.
If all three criteria matches then remove files from the second location. After removing the files it will remove empty directories as well.
- Copy and paste one directory with many files and folders
- Edit one or two files from the new pasted(second) directory
- Create
config.py
file and assign absolute path toBASE_DIR
andBACKUP_DIR
variables. - Run code.
- If you don't see any error, verify only updated files are there or not.
- If you see an error or code did not work, contact me.