Skip to content

prakash-jayaswal/junkFileOrganizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Junk File Organizer with Python

Basically, as a lazy programmer my desktop is full of files (Junk Files). Due to the large number of files, it is a daunting task to sit and organize each file. To make that task easy the below Python script comes handy and all the files are organized in a well-manner within seconds.

  • for using without any outside library installed, download this file and use it

Main functionality of this code

  • Organize by extension
  • Organize by size
  • Organize by last used date

How to use this::

For Organize with extension

python file.py --path C:\Users\praka\OneDrive\Desktop\Attainu\files --o extension

For organize with size

python file.py --path C:\Users\praka\OneDrive\Desktop\Attainu\files --o size

For organize with last used date

python file.py --path C:\Users\praka\OneDrive\Desktop\Attainu\files --o date

1. Organize by extension

by using this option user can organize their files by their file extension in a given folder, folder will be created according to file extension and finally all files will be moved to a created folder.

2. Organize by size

by using this option user can organize their files by their file size, according to file sizes random folders will be created and respective files will be moved to them.

3. Organize by Last used/accessed date

by using this option user can organize their files by last used date. random folders will be created according to file's last used date and files will be moved to them.

what i used :

I used many built-in libraries like- shutil for file movement,datetime for get the date of the files,argparse for the command line parsing and etc.

future improvement:

We can design the ui for the program so a normal user can easily interact with it. We can add more features like deleting the junk files after a certain period of time.

Note: if the use not provide the argument then program will perform the operation on the current directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages