LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Check if the input file is not the previous run file

    Employee
    Posted 11-04-2015 04:37

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Priyanka Samad

    Hi All,

    Is there a way to get in lavastorm, the date and timestamp of a file(say an xlsx file) which we are using as the input file?

    Actually my scenario is, i get my input file abc.xlsx from a location, say A. Once the file is processed, i am moving the input file to another location say B.
    Now when a new file comes in location A with the same name abc.xlsx, i have to make a check that this is not the previous run file.

    Can anyone please let me know how i should proceed.

    Thanks


  • 2.  RE: Check if the input file is not the previous run file

    Employee
    Posted 11-04-2015 06:02

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ryeh

    Use the 'stat' function to get the created or modified time of a file.
    https://infogix.zendesk.com/hc/en-us/community/posts/360050684754

    Use the 'moveFile' function to rename/move a file.
    https://infogix.zendesk.com/hc/en-us/community/posts/360050709314


  • 3.  RE: Check if the input file is not the previous run file

    Employee
    Posted 11-04-2015 23:45

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Priyanka Samad

    Thanks Ryeh !!

    This works perfectly !!
    Sorry i was not able to make a proper search before.


  • 4.  RE: Check if the input file is not the previous run file

    Employee
    Posted 11-05-2015 11:33

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ryeh

    No need to apologize. If anything, this makes it even easier for others to search in the future!