Coder Social home page Coder Social logo

filex's Introduction

FileX ๐Ÿ‘‰ File Operations CLI Tool

Flex is a command-line interface (CLI) tool that performs file operations such as moving, copying, or deleting files. The tool is written in Python and is designed to be simple and easy to use.


Features

  • Move files from one directory to another
  • Copy files from one directory to another
  • Delete files from a directory
  • Support for file patterns to select multiple files
  • Support for custom destination directory
  • Support for multiple file operations in a single command
  • Error handling to check for file/directory existence and user permissions
  • Recursive operations to copy/move entire directories and their contents
  • Support for different types of file operations, such as renaming or creating new files
  • Support for different types of files, such as symbolic links or device files
  • Custom file filters to select files based on criteria such as file size or modification date
  • Platform-specific support for Windows or macOS.

Usage

The tool accepts the following command-line arguments:

python filetool.py [operation] [source] [destination]

Where:

  • operation can be one of move_file, copy_file, or delete_file, move_dir, copy_dir, delete_dir, copy_path, move_path delete_path'

  • source is the path to the file(s) to be operated on. It can contain wildcards to match multiple files.

  • destination is the path to the directory where the file(s) should be moved/copied. It is optional and defaults to the current directory for the delete operation.


Examples

  • To move all .txt files from /path/to/source to /path/to/destination:
python filetool.py move /path/to/source/*.txt /path/to/destination
  • To copy all .jpg files from /path/to/source to /path/to/destination:
python filetool.py copy /path/to/source/*.jpg /path/to/destination

To delete all .log files from /path/to/source:

python filetool.py delete /path/to/source/*.log

Future Enhancements

The tool can be further improved by adding the following features:

  • Support for other types of file operations, such as archive or compression
  • Improved user interface, such as interactive mode or progress indicators
  • Batch processing of files with custom scripts or commands
  • Integration with cloud storage services or remote servers
  • Support for other platforms or operating systems.

filex's People

Contributors

abdiu34567 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.