The Directory Content Exporter is a Python tool that allows you to export the contents of a directory and its files into a text file or a PDF document. It provides a simple graphical user interface (GUI) built using the Tkinter library.
- Select a directory using the file browser.
- Choose the output format as either a text file or a PDF document.
- Export the directory and its files to the selected output format.
- Display the exported content in the GUI.
- 18/11/23 -- Added Progress Bar on the GUI -- Added Exluded Options ( May not work Properly )
- Python 3.12.x installed on your system.
- Tkinter package installed (
sudo apt install python3-tk
) if not already available. - "pdfkit" package installed (
pip install pdfkit
) for exporting to PDF.
- Clone the repository or download the source code.
git clone https://github.com/ImAbuSayed/directory-content-exporter.git
- Open a terminal or command prompt and navigate to the project directory.
cd directory-content-exporter
- Install the required packages.
pip install -r requirements.txt
- Run the Python script.
python main.py
- The application window will open.
-
Select the directory you want to export by clicking the "Browse" button and navigating to the desired directory.
-
Choose the output format by entering either "txt" or "pdf" in the format entry field.
-
Click the "Export" button to start the export process.
-
A file dialog will prompt you to choose the location and name of the exported file. Select a suitable location and name with the appropriate extension based on the chosen format.
-
Once the export is complete, the exported content will be displayed in the text area below the export button. You can copy the content, close the application, or continue exporting content from different directories.
This project is licensed under the MIT License.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project was created by Abu Sayed.
PDF Option is under development mode. ( This might not work properly )