Skip to main content
Solved

JSON Reader Folder - Get File name

  • April 2, 2024
  • 3 replies
  • 166 views

akoure_terracon
Contributor
Forum|alt.badge.img+8

I’m using the JSON reader to read in a folder of JSON files. The reader is working how I want it to, however I would like to get the original file path/name as an attribute on each feature. 

 

Is there an easy way to do this? I’m hoping that I am missing something silly. 

 

 

Best answer by danilo_fme

Hi @akoure_terracon 

 I think you that you can expose the format attribute fme_basename in Reader.

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.

3 replies

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • Best Answer
  • April 2, 2024

Hi @akoure_terracon 

 I think you that you can expose the format attribute fme_basename in Reader.


akoure_terracon
Contributor
Forum|alt.badge.img+8

Hi @akoure_terracon 

 I think you that you can expose the format attribute fme_basename in Reader.

Thanks Danilo! The filename without extension is in the fme_basename attribute, and the full file path is under fme_dataset. 


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • April 2, 2024

Hi @akoure_terracon 

 I think you that you can expose the format attribute fme_basename in Reader.

Thanks Danilo! The filename without extension is in the fme_basename attribute, and the full file path is under fme_dataset. 

You are wellcome!