copyright 2012, 2018 by Orange Objects GmbH & Co. KG
http://www.OrangeObjects.de Author: A. Kling, M. Hofmann
Repairs bad or broken filenames within a given directory
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
- create a symbolic link
repairFileNames
to..../src/repairFileNames.groovy
in your local~/bin/
.
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
- currently everything is hardcoded based on the utf8 charset