Skip to main content

CLI tool for managing local file system storage

Project description

Manager


command-line-file-manager

PyPI Downloads License

Python CLI tool for scanning and organizing local directories and files.

Requires Python 3.10+

Installation

Via pip:

$ pip install command-line-file-manager

From main branch:

$ git clone https://github.com/kaliv0/command-line-file-manager.git
$ cd command-line-file-manager 
$ pip install .

Example

To run the application type fm followed by a sub-command, target directory and options

$ fm scan-files ../test --sort=type --save --output=./

Add --help after the fm command or any of the subcommands to get more information

$ fm scan-files --help

Usage: fm scan-files [OPTIONS] DIR_PATH

  DIR_PATH: Path to directory to be scanned

Options:
  --sort [name|size|date|modified|type]   Sorting criteria.  [default: name]
  --desc                                  Display result in descending order.
  -s, --save                              Save log message to file.
  -o, --output TEXT                       Path to output directory for the saved log file.
  --help                                  Show this message and exit.

Main Features

  • scan_files - list all files inside PATH
  • scan_subdirs - list all nested directories
  • build_catalog - list all contents (files, subdirs)
    (can be done recursively via build_catalog_recursively)
  • build_tree - visualize directory structure
  • build_pretty_tree - a fancy alternative with emojis etc.

  • search_by_name
  • search_by_name_recursively

  • organize_files - group files by extension into corresponding 'type' directories (e.g. music, books)
    (provides recursive version)

  • handle_duplicate_files - merge identical files (in terms of content) - prompts user for file name or uses first entry in duplicates list
    (has a recursive alternative)

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

command_line_file_manager-1.1.7.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

command_line_file_manager-1.1.7-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file command_line_file_manager-1.1.7.tar.gz.

File metadata

File hashes

Hashes for command_line_file_manager-1.1.7.tar.gz
Algorithm Hash digest
SHA256 e9c18401cdf3a10f9c475079e801d7b8c35d74724d768196d2d89f537f1c4d00
MD5 3f163024c370fbd7cfe3e5465b25ec7f
BLAKE2b-256 b02e32c3ac08974b816fa6ebdd73db588df3778fc2c2a187db4476da1423d49f

See more details on using hashes here.

File details

Details for the file command_line_file_manager-1.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for command_line_file_manager-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7c3b985d8850e786f8b1180bbb79501dd3ca3b2bd79000a27d3219017d7adf
MD5 ee85069f24be0771d479a37597c0d6f7
BLAKE2b-256 293557a0562f852ac153928613d08fade1b9086bfb404dd25ec20bd9faf57a74

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page