Platforms to show: All Mac Windows Linux Cross-Platform
FileListMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Files | MBS Util Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This class is made to get a list of files in a folder faster than by using a folderitem.
- 8 properties
- property Count as Integer
- property Folder as FolderItem
- property OK as Boolean
- property Path as String
- property TotalLogicalDataLength as Int64
- property TotalLogicalResourceLength as Int64
- property TotalPhysicalDataLength as Int64
- property TotalPhysicalResourceLength as Int64
- 3 shared properties
- shared property Cancel as Boolean
- shared property Threaded as Boolean
- shared property YieldTicks as Integer
- 45 methods
- method AttributeModificationDate(index as Integer) as Double
- method AttributeModificationDate(index as Integer, UTC as boolean) as Date
- method AttributeModificationDateTime(index as integer, UTC as boolean) as DateTime
- method BackupDate(index as Integer) as Double
- method BackupDate(index as Integer, UTC as boolean) as Date
- method BackupDateTime(index as integer, UTC as boolean) as DateTime
- method CFURL(index as integer) as Variant
- method Close
- method Constructor
- method Constructor(filelist as FileListMBS, index as Integer, WinFilter as string = "", SkipMode as Integer = 0)
- method Constructor(folder as folderitem, WinFilter as string = "", SkipMode as Integer = 0)
- method Constructor(Path as String, WinFilter as string = "", SkipMode as Integer = 0)
- method CreationDate(index as Integer) as Double
- method CreationDate(index as Integer, UTC as boolean) as Date
- method CreationDateTime(index as integer, UTC as boolean) as DateTime
- method Directory(index as Integer) as boolean
- method DisplayName(index as Integer) as string
- method FinderFlags(index as Integer) as Integer
- method IsBundle(index as Integer) as Boolean
- method IsHardLinked(index as Integer) as boolean
- method Item(index as Integer) as folderitem
- method ItemPath(index as Integer) as string
- method LastAccessDate(index as Integer) as Double
- method LastAccessDate(index as Integer, UTC as boolean) as Date
- method LastAccessDateTime(index as integer, UTC as boolean) as DateTime
- method LogicalDataLength(index as Integer) as Int64
- method LogicalResourceLength(index as Integer) as Int64
- method ModificationDate(index as Integer) as Double
- method ModificationDate(index as Integer, UTC as boolean) as Date
- method ModificationDateTime(index as integer, UTC as boolean) as DateTime
- method Name(index as Integer) as string
- method NodeID(index as Integer) as Int64
- method ParentDirectoryID(index as Integer) as Int64
- method PhysicalDataLength(index as Integer) as Int64
- method PhysicalResourceLength(index as Integer) as Int64
- method SortByCreationDate
- method SortByFileName
- method SortByModificationDate
- method TrueItem(index as Integer) as folderitem
- method Visible(index as Integer) as boolean
- method WinFileAttributes(index as Integer) as Integer
- 6 constants
Skip Modes
Constant | Value | Description |
---|---|---|
SkipFiles | 1 |
Skip files. |
SkipFolders | 2 |
Skip folders. |
SkipHidden | 12 |
Skip hidden files and folders. |
SkipHiddenFiles | 4 |
Skip hidden files. |
SkipHiddenFolders | 8 |
Skip hidden folders. |
SkipNone | 0 |
Skip no files. |
This class has no sub classes.
Some examples using this class:
- /Util/FileList/FileList
- /Util/FileList/FileList Benchmark
- /Util/FileList/FileList Listbox
- /Util/FileList/FileList Recursive
- /Util/FileList/Koingo FileList Example
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 22.5
- MBS Xojo Plugins, version 22.5pr7
- MBS Xojo Plugins, version 21.2pr6
- MBS Xojo Plugins, version 21.2pr4
- MBS Xojo Plugins, version 20.6pr4
- MBS Xojo Plugins, version 20.1pr7
- MBS Xojo Plugins in version 19.0
- MBS Releases the MBS Xojo / Real Studio plug-ins in version 16.1
- MBS REALbasic Plugins Version 10.4 release notes
- NSBundleMBS and NSDirectoryEnumeratorMBS
Xojo Developer Magazine
Videos
Release notes
- Version 22.5
- Added Cancel property for FileListMBS class.
- Added Threaded property to FileListMBS class.
- Deprecated Creator and Type functions in FileListMBS class.
- Version 21.2
- Fixed a memory leak in FileListMBS class for Windows.
- Fixed a problem with TrueItem() function in FileListMBS not working right for alias files.
- Version 21.0
- Deprecated HFSUniStr255 and FSRef for FileListMBS class.
- Version 20.1
- Added SkipMode parameter to constructors for FileListMBS class to skip over files/folders and hidden items.
- Fixed FileListMBS to not report logical file sizes correctly for newer Mac implementation.
- Version 19.4
- Added YieldTicks shared property to FileListMBS class.
- Version 19.0
- Added SortByFileName method to FileListMBS class.
- Rewrote FileListMBS for Mac to get better speed on APFS.
- Version 18.2
- Fixed FileListMBS.ItemPath on Mac to work for file lists constructed using other file list.
- Version 18.0
- Fixed memory leak with FileListMBS class.
The items on this page are in the following plugins: MBS Util Plugin.