FileLib Xojo and Real Studio plugin

FolderItemInfo.Constructor Constructor

The constructor for the FolderItemInfo class takes a FolderItem and a hint of what you are going to read.

Constructor(
   f as FolderItem,
   whichInfoHint as Integer)

Parameters

f
The FolderItem to get the information from.
whichInfoHint
A hint of what should be read. This should be a FolderItemInfoRequest hint constant. It is valid to use more than one by or-ing the constants together with BitwiseOr

Remarks

It is perfectly valid to give wrong hint in the hint constant, the code will still work, but the more accurate that the constant is the faster the reading will be.

Scenarios:

if wanting to read only the ContentModificationDate then do it like:

info = new FolderItemInfo(f,FolderItemInfoRequest.ContentModificationDate)


If wanting to read all dates then do it like:
info = new FolderItemInfo(f,FolderItemInfoRequest.AllDates)


If wanting to read ContentModificationDate and BackupDate then do it like:
info = new FolderItemInfo(f, _
   Bitwise.BitOr( _
   FolderItemInfoRequest.ContentModificationDate, _
   FolderItemInfoRequest.BackupDate))


Note:
AttributeModificationDate and BackupDate will return nil on Linux and Windows systems since the Windows systems have no concept of those dates.





See Also

FolderItemInfo Class