Skip to main content
Question

transforming a folder to a file with odd extension.


gboquin
Contributor
Forum|alt.badge.img+5

I have a process were I need to create a downloadable zip file that contains a file that has an odd extension. So far I am able to create the folder, but the file copy writer is renaming the folder instead of making it a file with odd ext.

I have added a picture to show how the folder displaying how the folder got renamed instead of changing the extension and making it a file.

Thanks in advance for any feedback.

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • May 16, 2022

The approach i'd take would be to first create a standard zip of the file (example --> example.zip) FME will be able to create that zip. Then, rename the zip to xyz (example.zip --> example.xyz) This could be done with python, system caller, or the filecopy


gboquin
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 18, 2022
hkingsbury wrote:

The approach i'd take would be to first create a standard zip of the file (example --> example.zip) FME will be able to create that zip. Then, rename the zip to xyz (example.zip --> example.xyz) This could be done with python, system caller, or the filecopy

Thanks @hkingsbury​  that was my fear. I need to play more with the settings for creating zip files as it was creating unnecessary folders-- basically a duplicate-- in the zipped file. Have a great day!


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