Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

File Organizer Script

This Python script organizes files in a specified directory based on their file types. It automatically creates folders for different file categories, such as Images, Documents, and Videos, and moves the files into the appropriate folders. This code is also under 100 lines

Features

  • Automatically creates folders for Images, Documents, and Videos.
  • Moves files to the corresponding folders based on their extensions.
  • Prints messages to indicate the files that were moved and any files that did not match any category.

Supported File Types

Images

  • PNG (.png)
  • JPG (.jpg, .jpeg)
  • GIF (.gif)

Documents

  • PDF (.pdf)
  • Word Documents (.docx)
  • Text Files (.txt)

Videos

  • MP4 (.mp4)
  • MKV (.mkv)
  • AVI (.avi)

Prerequisites

  • Python 3.x installed on your system.
  • Basic knowledge of how to run Python scripts.

Acknowledgments

  • Thanks to the open-source community for their contributions and support.