this program is created when I wanted to copy only the updated files to the usb storage. So I have computers, one at home and one at workplace. and I have many files under one directory in computer at my workplace. I want to bring every file to home as well. But I don't want to copy everything to the usb memory every time I want to bring to home. But I want to copy only updated ones to the usb memory. so when I move everything on the usb memory to home computer, they will have all updated ones overwritten and all files and folders are exactly the same as the one in workplace.
top directory ( experiments )
|
-> chemistry
-new file
-sample file1
-sample file2
-sodium hydroxide
- aluminum oxide
- heating it
-potassium chloride
- aluminum oxide
- new file
- sodium hydroxide
get_updated_files.py
-> folder with space
- file with space
- file with space2
-> magnetic fields
-> ferromagnetic material
- image1
- measuring its strength
- video1
-> field interactions
-> field strength
** first time running it ** test folder ( where I want to copy all files and folders ) is empty
then it copied all directories and files
above shows that it did not create two folders under magnetic fields folder. this is ok because they are empty folder. Once you add files to it. they will be copied.
** after modying **
then delete all files and folders at the destination.

then you can see that only updated files are copid!!!
・file deletion is not supported
























