https://github.com/origin-ayoub/foldora
A CLI tool that manages files and directories.
https://github.com/origin-ayoub/foldora
click-python pypi-package python python-cli python-click
Last synced: 15 days ago
JSON representation
A CLI tool that manages files and directories.
- Host: GitHub
- URL: https://github.com/origin-ayoub/foldora
- Owner: ayoub-aberbach
- License: mit
- Created: 2025-02-13T18:27:12.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-13T18:43:39.000Z (about 1 year ago)
- Last Synced: 2025-02-13T19:36:11.313Z (about 1 year ago)
- Topics: click-python, pypi-package, python, python-cli, python-click
- Language: Python
- Homepage: https://pypi.org/project/foldora/
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Foldora - File & Directory Manager CLI Tool
[](LICENSE)
[](https://pypi.org/project/foldora/)
[](https://pypi.org/project/foldora/)
[](code_of_conduct.md)
**Foldora** is a Python command-line interface (CLI) tool designed to help you efficiently manage files and directories.
---
## π Features
Foldora provides essential file and directory management commands:
- π List files and directories
- π Create directories and files
- π§Ή Delete (purge) files and directories
- π Display file contents
- βοΈ Replace spaces in file and folder names with underscores
---
## π οΈ Installation
Install Foldora from PyPI:
```bash
pip install foldora
```
> **Note:** Ensure Python is installed and available in your system path.
---
## π¦ Usage
Run Foldora using the `fd` command followed by the desired operation.
---
### π List Files and Directories
List the files and directories within one or more specified paths.
If no paths are provided, the current working directory is used.
**Command:**
```bash
fd la [paths] [--files] [--dirs]
```
**Notes:**
- If a specified path is a file, only that file will be listed.
- Hidden files and directories may be included depending on your system settings.
- Multiple paths can be provided to list contents from different directories simultaneously.
**Examples:**
```bash
fd la
fd la --files
fd la --dirs
fd la --files /path/to/dir
fd la --dirs /path/to/dir
fd la --files /path1 /path2
fd la --dirs /path1 /path2
```
---
### π Create Directories
Create one or more directories.
All necessary parent directories are created automatically if they do not exist.
**Command:**
```bash
fd nd [paths]
```
**Notes:**
- Does not modify existing directories.
- Supports creating multiple directories in a single command.
**Examples:**
```bash
fd nd directory1 directory2
fd nd /path/to/parent/new_directory
```
---
### π Create Files
Create one or more empty files in the current directory or a specified path.
**Command:**
```bash
fd nf '[-tp path_to_dir]' [filenames]
```
**Notes:**
- Supports creating multiple files in one command.
- Existing files will not be overwritten.
- If the specified directory does not exist, an error will be raised.
**Examples:**
```bash
fd nf file1.txt file2.txt
fd nf -tp /path/to/dir file1.txt file2.txt
```
---
### π§Ή Delete Files and Directories
Permanently delete specified files and directories, with user confirmation before proceeding.
**Command:**
```bash
fd pg [paths]
```
**Notes:**
- Use with caution β this action **cannot be undone**.
- Directories are deleted recursively, including all contents.
- Requires proper permissions to delete the specified paths.
**Examples:**
```bash
fd pg file1 directory1
```
---
### π Display File Contents
Display the contents of one or more files in the console.
**Command:**
```bash
fd vc [files]
```
**Notes:**
- Files must be readable.
- Supports multiple files β each fileβs content is displayed in sequence.
**Examples:**
```bash
fd vc file1.txt file2.txt
```
---
### βοΈ Replace Spaces in File/Folder Names
Rename files and folders by replacing spaces in their names with underscores.
**Command:**
```bash
fd fs [path]
```
**Notes:**
- Defaults to the current directory if no path is specified.
- By default, only top-level files and folders are renamed.
**Examples:**
```bash
fd fs
fd fs /path/to/dir
```
---
## π€ Contributing
Contributions are welcome!
Feel free to open issues or submit pull requests to help improve Foldora.
---
## π License
This project is licensed under the **MIT License**.