Skip to main content
Solved

JSON Reader Folder - Get File name


akoure_terracon
Contributor
Forum|alt.badge.img+3

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.

View original
Did this help you find an answer to your question?

3 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • 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+3
danilo_fme wrote:

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
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • April 2, 2024
akoure_terracon wrote:
danilo_fme wrote:

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!


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