Git Product home page Git Product logo

go-move-files-into-date-directories's Introduction

GitHub pre-commit Release

go-move-files-into-date-directories

Project to moves files from a directory into a new directory whose name is based on the file's date.

Table of content

This documentation section is generated automatically

Project Information

This project aims to facilitate the sort of amount of files in a directory into a new directory whose name is based on the file's date.

A common use-case of this script is to move photos into date-named directories based on when the photo was taken.

Original

Inspired from project.

Motivation

Rewrinting in Golang to be OS agnostic

Usage

You can find here a list of common usage for this application

CLI

Root command

=======================================================================
=                   move-files-into-date-directories                  =
=======================================================================

Moves files from a directory into a new directory whose name is based on
the file's date.

A common use-case of this script is to move photos into date-named
directories based on when the photo was taken.

Usage:
  move-files-into-date-directories [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  from        Perform move-files-into-date-directories into a specified directory
  help        Help about any command
  here        Perform move-files-into-date-directories in current directory
  version     Show the move-files-into-date-directories version information

Flags:
  -d, --debug     show debug message
      --dry-run   run command in dry-run mode
  -h, --help      help for move-files-into-date-directories

Use "move-files-into-date-directories [command] --help" for more information about a command.

Here subCommand

=======================================================================
=                 move-files-into-date-directories here              =
=======================================================================

Command to move files from current directory into a new directory whose
name is based on the file's date.

If no destination directory is specified, will use current directory too.
You cans specify the scope at which directories should be created, accepted
values are [hour day month year].

Exemple : If you specify "day" 'default value), files will be moved
from current directory to 'destination\yyyyMMdd'

Usage:
  move-files-into-date-directories here [flags]

Flags:
      --date-scope DateScope   the scope at which directories should be created. Accepted values [hour day month year] (default day)
      --destination string     destination directory, where files will be copied (if none, will use current directory)
  -h, --help                   help for here
  -r, --recursive              will move all files and sub-directories files (default true)
  -s, --separator string       separator to use when generating date file's date directory (default none)

Global Flags:
  -d, --debug     show debug message
      --dry-run   run command in dry-run mode

From SubCommand

=======================================================================
=                 move-files-into-date-directories from              =
=======================================================================

Command to move files from a specified directory into a new directory whose
name is based on the file's date.

If no destination directory is specified, will use current directory too.
You cans specify the scope at which directories should be created, accepted
values are [hour day month year].

Exemple : If you specify "day" 'default value), files will be moved
from current directory to 'destination\yyyyMMdd'

Usage:
  move-files-into-date-directories from [from_dir_path] [flags]

Flags:
      --date-scope DateScope   the scope at which directories should be created. Accepted values [hour day month year] (default day)
      --destination string     destination directory, where files will be copied (if none, will use current directory)
  -h, --help                   help for from
  -r, --recursive              will move all files and sub-directories files (default true)
  -s, --separator string       separator to use when generating date file's date directory (default none)

Global Flags:
  -d, --debug     show debug message
      --dry-run   run command in dry-run mode

License

MIT

go-move-files-into-date-directories's People

Contributors

ptavares 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.