Can I move or rename my file after it's been processed?

If you're working with our scheduler you may want to rename or move your file after it's been processed. This way you can determine if you file was properly run. You also may have another system in your process that may spit out files in say a date format. If this is the case and you would like to move your files to another directory or rename the file you can do so with our post processing feature.

On your Data Feed you'll see an area in the Schedule section called File Post Processing. In this area, there is a drop down menu called File Post Process. By default the drop down is set to Do Nothing to File. Which means, once EZ Fulfill has completed processing your file from your FTP/SFTP server, Dropbox or Amazon S3 it will leave the file as is.

If you would like your file moved or renamed, you can do so by selecting the Rename/Move Processed File option from the drop down. If your file is being pulled from an FTP/SFTP server the rename command will be used, if your file is being pulled from Dropbox or Amazon S3 it will be moved.

When you select Rename/Move Processed File, the default value is

{{ FILENAME }}_processed_{{ TIMESTAMP }}.csv

As you can see, we have a few special values in the string that is used for our default value. EZ Fulfill supports a set of variables when creating the rename/move file path. You can use the following variables when constructing your file path and name:

  • {{ YYYY }} - the current year (e.g. 2018)
  • {{ MM }} - the current month (e.g. 09)
  • {{ DD }} - the current day (e.g. 21)
  • {{ HH }} - the current hour (e.g. 10)
  • {{ M }} - the current minute (e.g. 05)
  • {{ SS }} the current second (e.g. 50)
  • {{ TIMESTAMP }} - the current timestamp (e.g. 20191009113055)
  • {{ FILENAME }} - the filename you provided in the file path section of the data feed (e.g. my_fulfillment.csv). This variable includes the file extension

Do note, if you are going to move your file to a new directory, using FTP/SFTP server, that directory must exist on your server or EZ Fulfill will throw an error when it tries to move the file. This is a limitation on the FTP rename command.

App: EZ Fulfill

Tags: faq, ftp, dropbox