Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: Date created vs. date modified (Get File Names)

  1. #1
    Join Date
    Sep 2011
    Posts
    171

    Default Date created vs. date modified (Get File Names)

    Hello Everyone,

    In Get File Names component there is column lastmodifiedtime. I wonder if it possible to get createdtime column?

    I need to filter files based on date they were created. Any work-around?

    Regards,
    Alex

  2. #2
    Join Date
    Apr 2008
    Posts
    1,771

    Default

    Hi Alex,
    how are those file created?
    Is it possible to create them incorporating the creation date into their name?

    Mick

  3. #3
    Join Date
    Sep 2011
    Posts
    171

    Default

    Thank you, Mick!

    Unfortunately, I have no control over file creation, but luckily date is already incorporated into file name, so I used JavaScript to extract it.

    However, it would be nice to have field "Date Created" in "Get File Names" component.

    Regards,
    Alex

  4. #4
    Join Date
    Apr 2008
    Posts
    1,771

    Default

    Hi Alex.

    I don't usually trust "Date Created", especially on a Windows environment.
    It already happened to me to copy files across 2 servers and the "Date Created" information changed from the original to the time I copied those files across!

    Mick

  5. #5
    Join Date
    Sep 2011
    Posts
    171

    Default

    It is good to know!

  6. #6
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    I think the Java API doesn't expose the time of creation, probably since it's operating system and file system specific.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.