OrgaPy is a command-line file organization tool that helps you manage and analyze your files and directories. It provides basic file system navigation, file analysis, and automatic file sorting capabilities.
- Directory navigation and file system exploration
- File system analysis (file count and total size)
- Automatic file sorting by extension
- Cross-platform compatibility (Windows, Linux, and macOS)
ls- List all files and directories in the current working directorycd <path>- Change current working directory- Use
cd ..to navigate to parent directory - Use
cdwithout arguments to show current directory
- Use
clearorcls- Clear the console screenanalyze- Calculate total file count and size in the current directorysort- Organize files into folders based on their extensionshelp- Display available commandsexit- Exit the program
The sort command creates folders based on file extensions and moves files into their respective folders. For example:
- A file named
document.pdfwill be moved to apdffolder - A file named
image.jpgwill be moved to ajpgfolder
Warning: The sort operation is irreversible. The program will ask for confirmation before proceeding.
- Run the script using Python:
python orgapy.py- Set your working directory using the
cdcommand:
OrgaPy C:\> cd Documents- Use the available commands to manage and organize your files.
- Python 3.x
- Standard Python libraries (no additional installations required):
osshutilplatform
Future improvements planned:
- Implement revert option for sorting operations
- Add command history functionality
- Include additional file analysis features (e.g., old files identification)
- The program starts in the root directory of where you have placed the file
- All operations are performed in the current working directory
- Exercise caution when using the sort function as it modifies your file system structure