I have 200 files. Their names have spaces. I want to replace these spaces in each file name with a dash. What is the best way to do this. I know I start with the pathnames reader. But, what is the next transformer(s) I need to add?
Page 1 / 1
When I need to do this I use a SystemCaller and the dos rename command.
Hi @timh ,
Alternatively, you can use File Copy writer (File Operation: Move) to rename files within a folder.
Rename "path_unix" read by the PATH reader to "filecopy_source_dataset".
Set your desired destionation filename to "filecopy_dest_filename".
Set "." (dot) to the Subfolder parameter in the File Copy writer feature type.
Set "Move" to the File Operation parameter of the File Copyt writer.