Skip to content

Python script that sorts files in a directory into subdirectories based on their file extensions.

Notifications You must be signed in to change notification settings

bchiek/SimpleFileSort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SimpleFileSort

Python script that sorts files in a directory into subdirectories based on their file extensions.

Requirements

Python 3.6 or later.

Usage

Run the script and enter the directory you want to sort when prompted

How It Works

The script prompts the user for a directory path. It then checks if the directory exists. If it does, the script gets a list of all files in the directory. For each file, it gets the file extension and creates a new directory for this file type (if it doesn't already exist). It then moves the file into the new directory.

image image

Note

The script does not move directories, only files. It also does not handle hidden files or files that it does not have permission to move.

About

Python script that sorts files in a directory into subdirectories based on their file extensions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages