A CLI tool that manages files and directories.
Project description
Foldora - File & Directory Manager CLI Tool
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:
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:
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:
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:
fd nd [paths]
Notes:
- Does not modify existing directories.
- Supports creating multiple directories in a single command.
Examples:
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:
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:
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:
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:
fd pg file1 directory1
📝 Display File Contents
Display the contents of one or more files in the console.
Command:
fd vc [files]
Notes:
- Files must be readable.
- Supports multiple files — each file’s content is displayed in sequence.
Examples:
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:
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:
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file foldora-0.0.6.tar.gz.
File metadata
- Download URL: foldora-0.0.6.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5ac06b23fce2744fa1f2e920b5df69e7c906ab7e453ed80e2c002909cfe83b6
|
|
| MD5 |
10d57855c70bbbb64a4372799d65625a
|
|
| BLAKE2b-256 |
c9a8cc70acbd41caaea80626019dcc34174aec81e7f884de5e69bb863e8fac82
|
Provenance
The following attestation bundles were made for foldora-0.0.6.tar.gz:
Publisher:
foldora.yml on old-ghost/foldora
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
foldora-0.0.6.tar.gz -
Subject digest:
a5ac06b23fce2744fa1f2e920b5df69e7c906ab7e453ed80e2c002909cfe83b6 - Sigstore transparency entry: 630380345
- Sigstore integration time:
-
Permalink:
old-ghost/foldora@7a9c3a843f64e8a02bb19bd835b617cd06c496d0 -
Branch / Tag:
refs/tags/0.0.6 - Owner: https://github.com/old-ghost
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
foldora.yml@7a9c3a843f64e8a02bb19bd835b617cd06c496d0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file foldora-0.0.6-py3-none-any.whl.
File metadata
- Download URL: foldora-0.0.6-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1577e89fc5b695544290cb2926d89158f8ca5dfa9ab90e89b9e040ad10750fb5
|
|
| MD5 |
037bb25073db3edba0a24f9154df8988
|
|
| BLAKE2b-256 |
66b66acb1c3636e3e494069b229d5b3eba11d35ee123d4313843cda99a93a3b6
|
Provenance
The following attestation bundles were made for foldora-0.0.6-py3-none-any.whl:
Publisher:
foldora.yml on old-ghost/foldora
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
foldora-0.0.6-py3-none-any.whl -
Subject digest:
1577e89fc5b695544290cb2926d89158f8ca5dfa9ab90e89b9e040ad10750fb5 - Sigstore transparency entry: 630380348
- Sigstore integration time:
-
Permalink:
old-ghost/foldora@7a9c3a843f64e8a02bb19bd835b617cd06c496d0 -
Branch / Tag:
refs/tags/0.0.6 - Owner: https://github.com/old-ghost
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
foldora.yml@7a9c3a843f64e8a02bb19bd835b617cd06c496d0 -
Trigger Event:
push
-
Statement type: