https://github.com/ayoub-aberbach/fdm_cli
FDM - File & Directory Manager CLI Tool.
https://github.com/ayoub-aberbach/fdm_cli
pypi pypi-package python python-cli python-package
Last synced: 2 months ago
JSON representation
FDM - File & Directory Manager CLI Tool.
- Host: GitHub
- URL: https://github.com/ayoub-aberbach/fdm_cli
- Owner: ayoub-aberbach
- License: mit
- Created: 2025-01-21T15:21:32.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-12T00:58:27.000Z (4 months ago)
- Last Synced: 2025-02-12T01:40:33.180Z (4 months ago)
- Topics: pypi, pypi-package, python, python-cli, python-package
- Language: Python
- Homepage: https://pypi.org/project/fdm-cli/
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FDM-CLI is a Python command line interface (CLI) tool designed to allow you to manage your files and directories.
## Features:
FDM-CLI >> File & Directory Manager CLI Tool.
A command line utility (CLI) for file and directory operations.
Provides commands to:- List files.
- Create directories and files.
- Purge files and directories.
- Display file contents.## Commands:
- List files and directories.
Lists all files and directories in the current directory or specified paths.
Arguments:
paths (tuple of Path): Paths to list. If no paths are provided, lists the contents of the current directory.Examples:
1- Current path:
fd list2- Add path(s):
fd list /path/to/directory-1 /path/to/directory-2 ...- Create directories.
Creates one or more directories.
Arguments:
path (tuple of Path): Paths to directories to be created. If directories already exist, they are not modified.Examples:
fd dirs new_directory another_directory ...
- Create files.
Creates one or more files in the current directory or specified path.
Arguments:
filename (tuple of File): Names of files to be created.
path (Path, optional): Custom path where the files will be created. If not provided, files are created in the current directory.Examples:
1- Current directory:
fd files file1.txt file2.txt ...
2- Add a directory path:
fd files -p /path/to/directory file1.txt file2.txt ...
- Purge files and directories.
Deletes specified files and directories. Requires user confirmation.
Arguments:
paths (tuple of Path): Paths of files and directories to be deleted.Examples:
fd purge file1.txt directory1 ...
- Show file contents.
Displays the content of one or more files.
Arguments:
files (tuple of File): Files to display the contents of.Examples:
fd content file1.txt file2.txt