Skip to content

muehlburger/d2n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages