Skip to content

Files

Latest commit

 

History

History

Folder Content Sorter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Folder Content Sorter

	## Aim
	-To sort all the files of folder properly
	

	## Introduction
	-Here we first fetch the path of the current folder and than get the extension of each file and then sort the file according to that
	-For example ,if extensions are .pdf , .docx then it will go to documents folder simillarly for images>.jpg,.png,.gif ,for videos > .mp4,.wmv and for apps>.apk,.exe .
	## Third-Party Libraries Required :
	- os
	- shutil
	

	## How to install the above Library
	pip install os
	pip install shutil
	

	## How to use it :
	- First have the script in the same folder in whuch you wanted to sort the files and then run the script so as a result different folders will be formed accordingly.
	

	## Output
	- Before running the script
	- ![before_running(folder_content_sorter)](https://user-images.githubusercontent.com/71593494/127644258-20486b71-a48e-4522-a381-24c2cfcc6f9f.png)
	

	- After running the script
	- ![after_running(folder_content_sorter)](https://user-images.githubusercontent.com/71593494/127644291-58c96297-be5b-4e51-baf3-c1d3489f5785.png)
	

	-![output(folder_content_sorter)](https://user-images.githubusercontent.com/71593494/127644332-d596b161-3aa9-4380-ac25-b852bfda9900.png)