rfleisch has asked for the wisdom of the Perl Monks concerning the following question:
Hello All
I need some guidance. I need to scan a folder looking at each name and folder name recursively and REMOVE special characters from those file names and folder names. I see these main tasks to do. 1. Start a directory read and retrieve an item. 2. Translate out the "special characters" to an underscore. 3. Rename the item to the new translated name. 4. If the item is a folder set it as the folder name and repeat recursively.
I need help with the translating part and the renaming part. Is renaming a folder the same as renaming a file?
Thank you - Ray Fleischmann
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Transforming File Name Characters
by choroba (Cardinal) on Mar 11, 2013 at 17:15 UTC | |
by rfleisch (Initiate) on Mar 11, 2013 at 18:30 UTC | |
by choroba (Cardinal) on Mar 11, 2013 at 21:24 UTC | |
by rfleisch (Initiate) on Mar 12, 2013 at 12:10 UTC | |
by rfleisch (Initiate) on Mar 14, 2013 at 17:53 UTC | |
by choroba (Cardinal) on Mar 14, 2013 at 18:06 UTC | |
| |
by rfleisch (Initiate) on Mar 14, 2013 at 19:24 UTC | |
by choroba (Cardinal) on Mar 14, 2013 at 19:54 UTC | |
| |
|
Re: Transforming File Name Characters
by Kenosis (Priest) on Mar 11, 2013 at 19:26 UTC | |
by rfleisch (Initiate) on Mar 12, 2013 at 12:13 UTC |