Platforms to show: All Mac Windows Linux Cross-Platform
Back to FileListMBS class.
FileListMBS.LogicalResourceLength(index as Integer) as Int64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.ModificationDate(index as Integer) as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
On Mac OS the UTC date (+0 time zone)
On Windows looks like local timezone.
Raises an exception if index is out of bounds. Index is zero based.
See also:
FileListMBS.ModificationDate(index as Integer, UTC as boolean) as Date
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
See also:
FileListMBS.ModificationDateTime(index as integer, UTC as boolean) as DateTime
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 20.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.Name(index as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
May return a Unicode string, so be carefull with encoding.
Returns "" on any error.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.NodeID(index as Integer) as Int64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 9.1 | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | All |
The node id is zero on Windows and Linux.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.ParentDirectoryID(index as Integer) as Int64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 9.1 | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | All |
Parent Directory ID is zero on Windows and Linux.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.PhysicalDataLength(index as Integer) as Int64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns 0 on any error.
Raises an exception if index is out of bounds. Index is zero based.
Some examples using this method:
FileListMBS.PhysicalResourceLength(index as Integer) as Int64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Value is always 0 on Windows.
Returns 0 on any error.
Raises an exception if index is out of bounds. Index is zero based.
Some examples using this method:
FileListMBS.SortByCreationDate
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 19.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
FileListMBS.SortByModificationDate
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
FileListMBS.TrueItem(index as Integer) as folderitem
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 8.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
The reason why you use this class is to avoid makeing folderitems which is slow, so don't use this function too often. e.g. good if you just take 5 folderitems for 20000 files by filtering.
TrueItem will use GetTrueFolderItem so the link/alias files are not resolved by Xojo.
Due to bugs in Xojo, you may still get alias resolved.
Some examples using this method:
FileListMBS.Type(index as Integer) as string Deprecated
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | All |
Always "" on Windows and Linux.
Raises an exception if index is out of bounds. Index is zero based.
Stopped working on macOS Monterey and newer since Apple deprecated the API long ago.
FileListMBS.Visible(index as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
On Mac OS X, files with name starting with "." are considered to be invisible.
False on any error.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.WinFileAttributes(index as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 6.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
Value is 0 on other platforms.
Raises an exception if index is out of bounds. Index is zero based.
The items on this page are in the following plugins: MBS Util Plugin.