PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Directory +INFO  (Read 1041 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Directory +INFO
« on: April 08, 2021, 04:38:10 PM »
According to the documentation, we can get detailed file information by opening a directory with opt="+INFO". This provides:
  • File name
  • File type ("F" for file, "D" for directory)
  • File size in bytes
  • Date created
  • Date last modified
  • Date last accessed
I'm presuming this is the order the data comes back in. If that's the case, how can I get a Creation date that's after the Last Modified date?

Thanks for any clarifications.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

RobL

  • Silver Member
  • ***
  • Posts: 21
    • View Profile
Re: Directory +INFO
« Reply #1 on: April 08, 2021, 05:36:28 PM »
Hi James,

That can happen if the file is a copy of another file. The copy of the file gets a new 'creation date', but keeps the original 'last modified' date.  That's what happens on Windows, not sure if it's the same on Linux.

Hope that helps!

Rob Leighton
Riverwood Enterprises Inc.

Devon Austen

  • Administrator
  • Diamond Member
  • *****
  • Posts: 382
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: Directory +INFO
« Reply #2 on: April 09, 2021, 09:00:27 AM »
I can confirm after looking at the code that that order in the doc is correct.
Principal Software Engineer for PVX Plus Technologies LTD.

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: Directory +INFO
« Reply #3 on: April 09, 2021, 09:57:22 AM »
Thanks, guys!
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services