Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faizan35/python-imp-codes
https://github.com/faizan35/python-imp-codes
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/faizan35/python-imp-codes
- Owner: faizan35
- Created: 2023-11-30T06:53:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-14T12:04:43.000Z (11 months ago)
- Last Synced: 2024-02-14T13:27:17.997Z (11 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Codes
## Clone Repo
```bash
git clone https://github.com/faizan35/Python-imp-codes.git
```## Contents
- [Python Codes](#python-codes)
- [Contents](#contents)
- [Clone Files Script - `clone-files-in-txt.py`](#clone-files-script---clone-files-in-txtpy)
- [Usage](#usage)
- [Print Directory Structure Script - `print-dir-structure.py`](#print-directory-structure-script---print-dir-structurepy)
- [Usage](#usage-1)## Clone Files Script - `clone-files-in-txt.py`
This script recursively clones files in a directory to a specified output directory. It reads the content of each file and writes it to a separate text file in the output directory.
#### Usage
1. Replace `'paste-your-path-here'` and `'paste-your-output-path-here'` with the actual paths.
2. Uncomment the line to skip `.css` files if needed.
3. Run the script:```bash
python clone-files-in-txt.py
```## Print Directory Structure Script - `print-dir-structure.py`
This script prints the directory structure in a tree-like format. It uses box-drawing characters for better visualization and handles `PermissionError` while listing directory entries.
#### Usage
1. Replace `'paste-your-path-here'` with the actual root directory path.
2. Run the script:```bash
python print-dir-structure.py
```Make sure to have the necessary permissions for the specified directories.