Platforms to show: All Mac Windows Linux Cross-Platform

Back to FileListMBS class.

Previous items

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
The logical resource length of the item with the given index.

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
The modification date.

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
The modification date.

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
The modification date.

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
The name of the item with the given index.

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 Mac node ID for the given file or directory.

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
The Mac ID for the parent directory.

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
The physical data length of the item with the given index.

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
The physical resource length of the item with the given index.

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
Sorts items in list by creation date.

FileListMBS.SortByFileName

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS Util Plugin 19.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sorts items in list by file names.

FileListMBS.SortByModificationDate

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS Util Plugin 6.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sorts items in list by modification date.

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
Creates a folderitem for the item with the given index.

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
This item is deprecated and should no longer be used.
The Mac Type code of the item with the given index.

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
Whether the item with the given index is visible.

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
The file attributes for this file on Windows.

Value is 0 on other platforms.
Raises an exception if index is out of bounds. Index is zero based.

Previous items

The items on this page are in the following plugins: MBS Util Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...