sort-it

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

sort-it

Sort your unorganized files with sort-it using only one command. This utility is able to find duplicates, sort multimedia files like photos, videos, and audio and also to create summary files in json as well as html where all duplicates are listed.

Get your files organized and download the binary in the release tab.

$ sort-it -h

Sort your unorganized files with sort-it using only one command. This utility
is able to find duplicates, sort multimedia files like photos, videos, and
audio and also to create summary files in json as well as html where all
duplicates are listed.

Usage:
  sort-it [source folder] [destination folder] [flags]

Flags:
      --copy-duplicates   copy duplicates to destination folder
      --duplicates-only   only look for duplicate files, do not take account of file type
  -h, --help              help for sort-it
      --multimedia-only   only sort photos, videos, and audio files, ignore all other file types

When running sort-it it creates the following folder structure in the destination folder. Some subdirectories only get created when they are needed.

.
├── Data
├── Errors
│   ├── Duplicates
│   ├── Files
│   ├── sort-it_duplicates.html
│   ├── sort-it_duplicates.json
│   └── sort-it_errors.json
└── Multimedia
    ├── Audio
    │   ├── Music
    │   │   └── <Artist>
    │   │       └── <Album>
    │   └── Sounds
    │       └── <Year>
    │           └── <Month>
    ├── Pictures
    │   └── <Year>
    │       └── <Month>
    └── Videos
        └── <Year>
            └── <Month>

Run as Docker container

Don't want to install the binary and its dependencies on your system? No problem, just use the docker image with one of the tags available.

# set environment variables
$ SRC=<"path to source folder">
$ DST=<"path to destination folder">

# run docker container
$ docker run --rm \
  -v $SRC:$SRC \
  -v $DST:$DST \
  aschbacd/sort-it:latest $SRC $DST [flags]

Dependencies

  • exiftool (enables sort-it to get exif metadata of any file)

Documentation

Overview

Copyright © 2020 Dominik Aschbacher <dominik.aschbacher.00@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
internal
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL