Skip to main content
Question

file name renamer (based on attrib item and folder location)

  • July 30, 2013
  • 2 replies
  • 36 views

Hello,

 

 

I have a point.shp with items of X_coord and Y_coord, which is the centroid location. Eventually will have some 10,000's of images in folders and subfolders. I can do via QGIS, GDAL, excel, and DOS, but i'd like to see if FME has more streamlined process.

 

 

Trying to rename Images and Image world files recursively and with subfolders. for example;

 

 

existing file(s): 0805_IDA_STR233_001.ecw \\ .eww

 

XY_concat: 1549962.5_16362527.5

 

Folder location: S:\\GO_GO_02\\CAD\\GIS\\GIS3\\Reports\\Ortho\\0805\\0805_IDA_STR233

 

 

New file(s) rename: 1549962.5_16362527.5_0805_001

 

 

I have seen some mentions of python scripts inside FME to perform the renaming, and this may work if there are no transformers available, but then might as well use the DOS RENAME feature.

 

 

Thoughts,

 

RL

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • July 30, 2013
Hi,

 

 

today's edition of the FME Evangelist has a nice walkthrough on using the FileCopy writer. How about using it to copy all your existing files into a new directory structure with their new names, then deleting the old structure after?

 

 

Relevant transformers might include the FilenamePartExtractorSubstringExtractor, AttributeSplitter and the StringConcatenator.

 

 

David

  • Author
  • July 30, 2013
Thanks David, how apropos! I'll give it a shot.

 

 

RL