d2n

command module
v0.0.0-...-357fc47 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

d2n

Go Report Card License

d2n adds timestamps in ISO 8601+ format YYYY-MM-DD (http://datestamps.org/index.shtml) at the beginning of the filenames to files. d2n is inspired by Karl Voit's article on "Managing Digital Files" and his date2name tool but not 100% compatible.

If the timestamp exists at the beginning of the filename, it will be ignored. Executed with an examplefilename of "image.jpg", it results in "2006-01-02T15.04.05.jpg".

Note: Other that defined in ISO 8601+ the delimiter between hours, minutes, and seconds is not a colon but a dot. Colons are causing several problems on different file systems and are therefore replaced with the (older) DIN 5008 version with dots. (see date2name for more information).

Features | Installation | Usage | Examples | Command-line options | Configuration

Features

  • Renames files to timestamps in ISO 8601+ format
  • Delimits hours, minutes, seconds using dots as in DIN 5008

Installation

go get -u github.com/muehlburger/d2n

Usage

d2n rename -s ./image.jpg

2021/04/23 18:05:57 rename /image.jpg -> /2018-05-31T22.39.26.jpg
TODOs
  1. Add ISO Timestamps
  2. Support adding/removing/changing of filenames
  3. Support tags

Authors

Herbert Mühlburger and contributors.

License

Apache 2.0 License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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