Sha256: f54e48625c8f6b3edc860b9babeaf703754af60bf3d0320fa10e52c72226aee0

Contents?: true

Size: 437 Bytes

Versions: 1

Compression:

Stored size: 437 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8

require "pp"
#gem "builtinextension"
#require "string_escape_zsh.rb"
require "filerenamer.rb"

op = FileRenamer::OptionParser.new
op.parse!(ARGV)

fr = FileRenamer::Commander.new(op.options, ARGV)
fr.execute do |filename|
  extname = File.extname filename
  dirname = File.dirname filename
  date = File.mtime(filename)

  newname = dirname + date.strftime("/%Y%m%d-%H%M%S") + extname
  newname
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
filerenamer-0.0.5 bin/rentime