Skip to content

Script to automatize sorting files depending on its extension. Classificated in images - pdfs - miscellaneous

Notifications You must be signed in to change notification settings

standoge/crontab-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Script to move files

It's a Bash script that you can add to your crontab config or Schtask (Windows) or Crontab (Linux) to move files depending its extension. For each move operation a log will be saved

How to use 💡

Script will works on the directory that their path are set in WORKSPACE variable in functions.py file. So, after put your path just execute:

python3 main.py #py on Windows

and your files will be moved depending its extension to three diferent directories. The script will create three directories, one for documents, another for images & videos and one last for miscellaneous files (binary files, jupyter notebooks etc).

Logs 📃

Logs are useful to know which files were moved and where, this log saves the original file's path and destiny path join with the date and hour of the operation. All logs of the day are saved at a same file. This file also have the date when was created.

image
Output

🎍 ~

About

Script to automatize sorting files depending on its extension. Classificated in images - pdfs - miscellaneous

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages