Platforms to show: All Mac Windows Linux Cross-Platform
FileListMBS.AttributeModificationDate(index as Integer) as Double
Function:
The attribute modification date of this file or directory.
Notes:
On Mac OS the UTC date (+0 time zone)
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes:
On Mac OS the UTC date (+0 time zone)
Raises an exception if index is out of bounds. Index is zero based.
See also:
FileListMBS.AttributeModificationDate(index as Integer, UTC as boolean) as Date
Function:
The attribute modification date of this file or directory.
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 13.4 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
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.AttributeModificationDateTime(index as integer, UTC as boolean) as DateTime
Function:
The attribute modification date of this file or directory.
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 20.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.BackupDate(index as Integer) as Double
Function:
The backup date of this file or directory.
Notes: On Mac OS the UTC date (+0 time zone)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: On Mac OS the UTC date (+0 time zone)
See also:
FileListMBS.BackupDate(index as Integer, UTC as boolean) as Date
Function:
The backup date of this file or directory.
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 13.4 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
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.BackupDateTime(index as integer, UTC as boolean) as DateTime
Function:
The backup date of this file or directory.
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 20.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.CFURL(index as integer) as Variant
Function:
Queries CFURLMBS object for an entry.
Notes:
Returns nil if no CFURL is kept for this item.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes:
Returns nil if no CFURL is kept for this item.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.Close
Function:
The destructor.
Notes: There is no need to call this method except you want to free all resources of this object now without waiting for Xojo to do it for you.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: There is no need to call this method except you want to free all resources of this object now without waiting for Xojo to do it for you.
FileListMBS.Constructor
Function:
A dummy constructor used only for automatic plugin testing.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.4 | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | All |
See also:
FileListMBS.Constructor(filelist as FileListMBS, index as Integer, WinFilter as string = "", SkipMode as Integer = 0)
Function:
The constructor which creates a new file list based on item in a given file list.
Example:
Notes:
If count is 0 after the contrustor the folder is invalid or empty.
On Windows the WinFilter allows you to pass a custom filter like "*.txt" to only find some files there.
SkipMode, added in version 20.1, allows you to skip some files from being part of the file list. Please use BitwiseOr() to combine Skip flags, e.g. BitwiseOr(SkipHidden, SkipFolders) returns only visible files.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim f1 as new FileListMBS(SpecialFolder.UserHome)
'MsgBox f1.path
// search first index of a visible folder
dim IndexOfDirectory as integer = 0
while f1.Directory(IndexOfDirectory) = false or f1.Visible(IndexOfDirectory) = false
IndexOfDirectory = IndexOfDirectory + 1
wend
// list that folder
dim f2 as new FileListMBS(f1, IndexOfDirectory)
'MsgBox f2.path
// show first file and path
MsgBox f2.Name(0)+EndOfLine+f2.ItemPath(0)
If count is 0 after the contrustor the folder is invalid or empty.
On Windows the WinFilter allows you to pass a custom filter like "*.txt" to only find some files there.
SkipMode, added in version 20.1, allows you to skip some files from being part of the file list. Please use BitwiseOr() to combine Skip flags, e.g. BitwiseOr(SkipHidden, SkipFolders) returns only visible files.
See also:
FileListMBS.Constructor(folder as folderitem, WinFilter as string = "", SkipMode as Integer = 0)
Function:
The constructor which creates a new file list based on the folder.
Notes:
If count is 0 after the contrustor the folder is invalid or empty.
On Windows the WinFilter allows you to pass a custom filter like "*.txt" to only find some files there.
SkipMode, added in version 20.1, allows you to skip some files from being part of the file list. Please use BitwiseOr() to combine Skip flags, e.g. BitwiseOr(SkipHidden, SkipFolders) returns only visible files.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
If count is 0 after the contrustor the folder is invalid or empty.
On Windows the WinFilter allows you to pass a custom filter like "*.txt" to only find some files there.
SkipMode, added in version 20.1, allows you to skip some files from being part of the file list. Please use BitwiseOr() to combine Skip flags, e.g. BitwiseOr(SkipHidden, SkipFolders) returns only visible files.
See also:
FileListMBS.Constructor(Path as String, WinFilter as string = "", SkipMode as Integer = 0)
Function:
The constructor which creates a new file list based on the directory path.
Notes:
If count is 0 after the contrustor the directory path is invalid or empty.
On Windows the WinFilter allows you to pass a custom filter like "*.txt" to only find some files there.
SkipMode, added in version 20.1, allows you to skip some files from being part of the file list. Please use BitwiseOr() to combine Skip flags, e.g. BitwiseOr(SkipHidden, SkipFolders) returns only visible files.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
If count is 0 after the contrustor the directory path is invalid or empty.
On Windows the WinFilter allows you to pass a custom filter like "*.txt" to only find some files there.
SkipMode, added in version 20.1, allows you to skip some files from being part of the file list. Please use BitwiseOr() to combine Skip flags, e.g. BitwiseOr(SkipHidden, SkipFolders) returns only visible files.
See also:
FileListMBS.CreationDate(index as Integer) as Double
Function:
The creation date.
Notes:
On Mac OS the UTC date (+0 time zone)
On Windows looks like local timezone.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
Notes:
On Mac OS the UTC date (+0 time zone)
On Windows looks like local timezone.
See also:
FileListMBS.CreationDate(index as Integer, UTC as boolean) as Date
Function:
The creation date.
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 13.4 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
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.CreationDateTime(index as integer, UTC as boolean) as DateTime
Function:
The creation date.
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 20.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.Creator(index as Integer) as string
Function:
The Mac Creator code of the item with the given index.
Notes:
Always "" on Windows and Linux.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | All |
Notes:
Always "" on Windows and Linux.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.Directory(index as Integer) as boolean
Function:
Whether the item with the given index is a folder.
Notes:
True if it is a folder and false if it is a file.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
True if it is a folder and false if it is a file.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.DisplayName(index as Integer) as string
Function:
The display name of the item with the given index.
Notes:
Asks the System for the display name of the item. Returns the normal name on any error.
As this call may cost quite some CPU time you may cache the value if you need it more often.
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Asks the System for the display name of the item. Returns the normal name on any error.
As this call may cost quite some CPU time you may cache the value if you need it more often.
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.FinderFlags(index as Integer) as Integer
Function:
The Finder flags from Mac OS.
Notes:
On Windows and Linux value is 0.
The flag value is a set of bits with the following meaning:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
On Windows and Linux value is 0.
The flag value is a set of bits with the following meaning:
bit 15 | value &H8000 | isAlias |
bit 14 | value &H4000 | isInvisible |
bit 13 | value &H2000 | hasBundle (has a BNDL resource) |
bit 12 | value &H1000 | nameLocked |
bit 11 | value &H0800 | isStationary |
bit 10 | value &H0400 | hasCustomIcon |
bit 8 | value &H0100 | hasBeenInited (Finder has seen the file since it has been created) |
bit 7 | value &H0080 | hasNoINITs (there is no INIT rsrc in the Extension file) |
bit 6 | value &H0040 | isShared |
bits 1-3 | value &H000E | color (as a 3-bit value from 0-7) |
FileListMBS.FSRef(index as Integer) as memoryblock
Function:
The FSRef used for this item.
Returns nil if no FSRef is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This item is deprecated and should no longer be used.
Notes:
Returns nil if no FSRef is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.HFSUniStr255(index as Integer) as memoryblock
Function:
The HFSUniStr255 used for this item.
Returns nil if no HFSUniStr255 is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This item is deprecated and should no longer be used.
Notes:
Returns nil if no HFSUniStr255 is kept for this item.
On Mac OS there is a FSSpec or (FSRef and HFSUniStr255).
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.IsBundle(index as Integer) as Boolean
Function:
Queries using LaunchServices whether this item is a folder and the root of a bundle.
Example:
Notes:
On Windows, Linux and Mac OS Classic always false.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 6.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
Example:
Protected Sub Dir(f as FolderItem)
dim l as FileListMBS
dim i,c as Integer
// search subfolders and find bundles
l=new FileListMBS(f)
c=l.Count-1
for i=0 to c
// if bundle, show it in listbox
if l.IsBundle(i) then
ListBox1.AddRow l.Item(i).NativePath
elseif l.Directory(i) then
// if sub folder, browse it
dir l.Item(i)
end if
next
End Sub
FileListMBS.IsHardLinked(index as Integer) as boolean
Function:
Whether the file is a hard link.
Notes:
If two directory entries point to the same hard disc space, you have a file which has two directory entries, but only one storage.
This function returns true for files in a Time Machine backup which did not change since the last backup and share their disc space with the other backups.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 9.4 | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | All |
Notes:
If two directory entries point to the same hard disc space, you have a file which has two directory entries, but only one storage.
This function returns true for files in a Time Machine backup which did not change since the last backup and share their disc space with the other backups.
Raises an exception if index is out of bounds. Index is zero based.
FileListMBS.Item(index as Integer) as folderitem
Function:
Creates a folderitem for the item with the given index.
Notes:
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.
Raises an exception if index is out of bounds. Index is zero based.
On Mac OS X you always get TrueItem behavior as the plugin doesn't resolve aliases.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
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.
Raises an exception if index is out of bounds. Index is zero based.
On Mac OS X you always get TrueItem behavior as the plugin doesn't resolve aliases.
FileListMBS.ItemPath(index as Integer) as string
Function:
The native file path for an item.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
FileListMBS.LastAccessDate(index as Integer) as Double
Function:
The last access date of this file or directory.
Notes:
On Mac OS the UTC date (+0 time zone)
Raises an exception if index is out of bounds. Index is zero based.
To query Spotlight's Last Open day, please check the FAQ for sampel code.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 9.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
On Mac OS the UTC date (+0 time zone)
Raises an exception if index is out of bounds. Index is zero based.
To query Spotlight's Last Open day, please check the FAQ for sampel code.
See also:
FileListMBS.LastAccessDate(index as Integer, UTC as boolean) as Date
Function:
The last access date of this file or directory.
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
To query Spotlight's Last Open day, please check the FAQ for sample code.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
To query Spotlight's Last Open day, please check the FAQ for sample code.
See also:
FileListMBS.LastAccessDateTime(index as integer, UTC as boolean) as DateTime
Function:
The last access date of this file or directory.
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
To query Spotlight's Last Open day, please check the FAQ for sample code.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 20.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Either in UTC time zone or in local time zone.
Raises an exception if index is out of bounds. Index is zero based.
To query Spotlight's Last Open day, please check the FAQ for sample code.
FileListMBS.LogicalDataLength(index as Integer) as Int64
Function:
The logical file data length for the item with the given index.
Notes:
Same value as folderitem.length, but works with files >2GB.
Raises an exception if index is out of bounds. Index is zero based.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Same value as folderitem.length, but works with files >2GB.
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.

Links
MBS FileMaker Plugins