This is a simple Python application to manage your portfolio. It runs on your localhost and allows you to perform the following actions:
-
Display Files & Folders: View the list of files and folders in your Downloads directory.
-
Sort Files: Sort files in the Downloads directory into folders based on their file extensions.
-
Merge Folders & Sort: Merge all folders in the Downloads directory into one folder and sort the files inside it based on their extensions.
-
Move Sorted Folders: Move the sorted folders (from Step 3) back to the Downloads directory.
-
Install the required dependencies using
pip: -
Copy the Python code from
main.pyinto a Jupyter Notebook or Voila environment. -
Run the Jupyter Notebook or Voila server to launch the application on your localhost.
-
Click on the buttons to perform the corresponding actions.
-
Click on the "Display Files & Folders" button to view the list of files and folders in your Downloads directory.
-
Click on the "Sort Files" button to sort the files in the Downloads directory into folders based on their file extensions.
-
Click on the "Merge Folders & Sort" button to merge all folders in the Downloads directory into one folder and sort the files inside it based on their extensions.
-
Click on the "Move Sorted Folders" button to move the sorted folders (from Step 3) back to the Downloads directory.
Note: Ensure that you close any open files in the Downloads directory before using the "Sort Files," "Merge Folders & Sort," or "Move Sorted Folders" features to avoid permission errors.
The application will sort and categorize the files based on the following file extensions:
- txt
- jpg
- png
- doc
- docx
- xls
- xlsx
- ppt
- pptx
- mp3
- mp4
- avi
- zip
- rar
You can modify the extensions list in the code to add or remove file extensions.
This project is licensed under the MIT License. See the LICENSE file for details.