Skip to content

Repairs bad or broken filenames within a given directory

Notifications You must be signed in to change notification settings

MichaH/repairFileNames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

copyright 2012, 2018 by Orange Objects GmbH & Co. KG

O r a n g e O b j e c t s

http://www.OrangeObjects.de Author: A. Kling, M. Hofmann

repairFileNames.groovy

Repairs bad or broken filenames within a given directory

Environment

tested with Groovy Version: 1.7.3 JVM: 1.6.0_21

tested with Groovy Version: 2.5.0 JVM: 1.8.0_171 Vendor: Oracle Corporation OS: Linux

Tipp

  • create a symbolic link repairFileNames to ..../src/repairFileNames.groovy in your local ~/bin/.

Test

To run the testcase do the following steps:
$ cd /var/tmp
$ rm -rf testcase && repairFileNames.groovy -v -T testcase
$ repairFileNames.groovy -v testcase

the second run should produce no rename tasks any more
$ repairFileNames.groovy -v testcase

cleanup the testcase now
$ rm -rf testcase

Notes

  • currently everything is hardcoded based on the utf8 charset

About

Repairs bad or broken filenames within a given directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages