GithubHelp home page GithubHelp logo

files_collector's Introduction

files_collector

collect any files from one directory and subdirectories to one output directory (by extension)

python 2.7

How to use?

Run files_collector.py with args:

usage: files_collector.py [-h] [-in ROOT_DIR] [-out OUT_DIR] [-ext EXT_PATTERN] [-act COPY_OR_MOVE]

optional arguments: -h, --help show this help message and exit -in ROOT_DIR, --root_dir ROOT_DIR input directory (root) -out OUT_DIR, --out_dir OUT_DIR output directory -ext EXT_PATTERN, --ext_pattern EXT_PATTERN files extension (by default .) -act COPY_OR_MOVE, --copy_or_move COPY_OR_MOVE type of action: c - copy, m - move


-in - is argument for input directory path -out - is argument for output directory path -ext - is argument for files extension (by default .) -act - is argument for type of action: c - copy, m - move (by default copy)

This script uses cmd progress bar: [====================================================================================================] 100.0% ... completed!

Examples (using cmd):

d:\files_collector>files_collector.py -in c:\tmp\ -out d:\collection -ext *.mp3 -act c

  • this command copy all *mp3 files from "c:\tmp" and subdirectories to "d:\collection"

d:\files_collector>files_collector.py -in c:\tmp\ -out d:\collection -ext *.mp3 -act m

  • this command move all *mp3 files from "c:\tmp" and subdirectories to "d:\collection"

d:\files_collector>files_collector.py -in c:\tmp\ -out d:\collection

  • this command copy all files from "c:\tmp" and subdirectories to "d:\collection"

files_collector's People

Contributors

dimkanio avatar

Watchers

James Cloos avatar  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.