Skip to main content
Question

Gotcha - incorrect file properties when reading data directly from a ZIP file

  • January 16, 2020
  • 0 replies
  • 12 views

tim_wood
Contributor
Forum|alt.badge.img+8

Not really a question but a warning...

Reading data directly from inside a ZIP file is great, but there are a few issues that can catch you out. Firstly, you need enough space in the FME_TEMP folder to extract the entire contents of the ZIP file, which can be annoying if you only want one file. Read and vote for my idea on this here:

https://knowledge.safe.com/idea/100199/reading-from-zip-files-extract-only-file-specified.html

Secondly, I've discovered that if you read data from inside a ZIP file using the File and Pathnames Reader, the metadata about the files will be based on the extracted data in FME_TEMP, not the original ZIP file location or properties of the files inside (such as the date created). So in the screenshot below, the path is the FME_TEMP folder, not the original source folder. And the created, modified and accessed dates are all today, because that's when I ran the Workspace and therefore when the data was extracted from the ZIP to the FME_TEMP folder.

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.