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?
Solved
Replace spaces in file name with dashes
Best answer by takashi
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.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.