Skip to content

Programming641/get_updated_directories_and_files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

get_updated_directories_and_files

description

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.

explain

folder top

directory structure1

chemistry folder

potassium chloride folder

sodium hydroxide folder

folder with space folder

magnetic fields folder

ferromagnetic material folder

field interactions folder

field strength folder

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
     

running example

** first time running it ** test folder ( where I want to copy all files and folders ) is empty

first time running  test empty

first time running2

then it copied all directories and files

created top directory

created experiments folder

created chemistry folder

created sodium hydroxide folder

created magnetic fields folder

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 **

modified1

modified2

modified3

modified4

then delete all files and folders at the destination. delete at destination

execute

then you can see that only updated files are copid!!!

result1

result2

features not included

・file deletion is not supported

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages