Skip to main content
Question

Folder and data segregation and validation in FME form

  • December 23, 2024
  • 2 replies
  • 85 views

mahapandian
Contributor
Forum|alt.badge.img+3

Hi,

I have some villages (Primary and secondary villages), each containing a main folder, a subfolder, a data folder, and some empty folders. I will designate one village as the primary village.

 All sub-village files/data will be stored in the main village folder. Only location path links will be kept in the secondary village folder (marked in red color). Other data will be sourced from different locations (Marked in green color).

Finally, I must validate whether all folders and data have been correctly segregated or not. I am currently performing this process manually, which involves copying, pasting, and validating each folder and village individually.

This manual process is quite time-consuming and manpower.

Kindly help me about this test cases and workflow. I am new to FME and am eager to learn more about its functionalities.

Thanks.

2 replies

birgit
Influencer
Forum|alt.badge.img+16
  • Influencer
  • December 23, 2024

You have a reader called the "Directory and File Pathnames” reader. You can use this to read a folder, all subfolders and files inside it, the output will contain information on the filenames, file extension, owner, and the comlete file path. You can then use the "FilenamePartExtractor” to for example get directory names and rootnames for individual files and folders. For your usecase you will probably also need a lot of testers. However, what you are asking us is very extensive for a forum question, it basically requires us to build the whole workbench for you which if you are very lucky someone might do for you but it is really not the goal of the forum itself.

Also you can check out the FME academy if you are new and don't know anything about FME: https://academy.safe.com

Its free and will help you understand how FME works which is really what you need right now I think.


mahapandian
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • December 24, 2024

Hi ​@birgit Thank you for your response. I have already used some of the transforms you suggested, but I am not getting the expected results. Of course, I will go through it. https://academy.safe.com

Thanks! 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings