Skip to main content
  • 10000+ Posts
  • 53,114 Replies
10000+ Posts
Add zip file size to data download notication email

Hi all I'm trying to add the zip file size to the data download service notification email.  This is the method I'm using: Workspace writes the data to be downloaded and a json file containing the information elements I will use in the email.Python shutdown script gets the zip file size from the zip file and appends a 'zip_size' element to the json (this doesn't work)workspace published as a data download service with its own success topic and publisher.  The publisher is set to access the info in the modified json file (set as 'Data to Post') when workspace published (this doesn't work) I'm not sure if this is possible.  Can anyone suggest any alternatives or ideas? This is my python shutdown script  import os import json import fme def sizeof_fmt(num, suffix='B'):     for unit in ['','K','M','G','T','P','E','Z']:         print "unit: {0}    number: {1}".format(unit, num)         if abs(num) < 1024.0:

Badge Winners

  • Integrate Data with the FME Platform Training
    jemburyhas earned the badge Integrate Data with the FME Platform Training
  • FME Form Advanced Training
    jemburyhas earned the badge FME Form Advanced Training
  • FME Form Basic Training
    jpanfmehas earned the badge FME Form Basic Training
  • English Speaker
    jfieglhas earned the badge English Speaker
  • FME Breakfast of Champions
    jfieglhas earned the badge FME Breakfast of Champions
Show all badges

Community Stats

32,247
Posts
122,422
Replies
39,943
Members

Latest FME