PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Directory +INFO  (Read 311 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 187
    • 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
Programmer / ERP Analyst
Beauty Enterprises, Inc.
150 Meadow St.
Hartford, CT 06114
860.296.9303  Ext 231

RobL

  • Member
  • **
  • Posts: 16
    • 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

  • Staff
  • Diamond Member
  • *****
  • Posts: 293
  • 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.
Software Developer for PVX Plus Technologies LTD.

James Zukowski

  • Diamond Member
  • *****
  • Posts: 187
    • View Profile
Re: Directory +INFO
« Reply #3 on: April 09, 2021, 09:57:22 AM »
Thanks, guys!
James Zukowski
Programmer / ERP Analyst
Beauty Enterprises, Inc.
150 Meadow St.
Hartford, CT 06114
860.296.9303  Ext 231