Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

FileListMBS.AttributeModificationDate(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 9.1 Yes No No Yes, macOS only No
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.

See also:

Feedback, Comments & Corrections

FileListMBS.AttributeModificationDate(index as Integer, UTC as boolean) as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 13.4 Yes Yes No Yes No
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.

See also:

Feedback, Comments & Corrections

FileListMBS.BackupDate(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 9.1 Yes No No Yes, macOS only No
Function: The backup date of this file or directory.
Notes: On Mac OS the UTC date (+0 time zone)

See also:

Feedback, Comments & Corrections

FileListMBS.BackupDate(index as Integer, UTC as boolean) as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 13.4 Yes Yes No Yes No
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.

See also:

Feedback, Comments & Corrections

FileListMBS.Close
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
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 Realbasic to do it for you.
(e.g. some Realbasic versions crash on Windows if there are plugin objects not closed.)

Feedback, Comments & Corrections

FileListMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.4 Yes No Yes Yes No
Function: A dummy constructor used only for automatic plugin testing.

See also:

Feedback, Comments & Corrections

FileListMBS.Constructor(filelist as FileListMBS, index as Integer, WinFilter as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 6.1 Yes Yes Yes Yes No
Function: The constructor which creates a new file list based on item in a given file list.
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.

See also:

Feedback, Comments & Corrections

FileListMBS.Constructor(folder as folderitem, WinFilter as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
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.

See also:

Feedback, Comments & Corrections

FileListMBS.Constructor(Path as String, WinFilter as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 16.1 Yes Yes Yes Yes No
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.

See also:

Feedback, Comments & Corrections

FileListMBS.CreationDate(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes No Yes No
Function: The creation date.
Notes:
On Mac OS the UTC date (+0 time zone)
On Windows looks like local timezone.

See also:

Feedback, Comments & Corrections

FileListMBS.CreationDate(index as Integer, UTC as boolean) as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 13.4 Yes Yes No Yes No
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.

See also:

Feedback, Comments & Corrections

FileListMBS.Creator(index as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes No Yes Yes No
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.

Feedback, Comments & Corrections

FileListMBS.Directory(index as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
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.

Feedback, Comments & Corrections

FileListMBS.DisplayName(index as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
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.

Feedback, Comments & Corrections

FileListMBS.FinderFlags(index as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 6.1 Yes Yes Yes Yes No
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:
bit 15value &H8000isAlias
bit 14value &H4000isInvisible
bit 13value &H2000hasBundle (has a BNDL resource)
bit 12value &H1000nameLocked
bit 11value &H0800isStationary
bit 10value &H0400hasCustomIcon
bit 8value &H0100hasBeenInited (Finder has seen the file since it has been created)
bit 7value &H0080hasNoINITs (there is no INIT rsrc in the Extension file)
bit 6value &H0040isShared
bits 1-3value &H000Ecolor (as a 3-bit value from 0-7)

Feedback, Comments & Corrections

FileListMBS.FSRef(index as Integer) as memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.2 Yes No No Yes, macOS only No
Function: The FSRef used for this item.
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.

Feedback, Comments & Corrections

FileListMBS.HFSUniStr255(index as Integer) as memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.2 Yes No No Yes, macOS only No
Function: The HFSUniStr255 used for this item.
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.

Feedback, Comments & Corrections

FileListMBS.IsBundle(index as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 6.1 Yes Yes No Yes No
Function: Queries using LaunchServices whether this item is a folder and the root of a bundle.
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).AbsolutePath
elseif l.Directory(i) then
// if sub folder, browse it
dir l.Item(i)
end if
next
End Sub
Notes: On Windows, Linux and Mac OS Classic always false.

Feedback, Comments & Corrections

FileListMBS.IsHardLinked(index as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 9.4 Yes No Yes Yes No
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.

Feedback, Comments & Corrections

FileListMBS.Item(index as Integer) as folderitem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
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.

Feedback, Comments & Corrections

FileListMBS.ItemPath(index as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 16.1 Yes Yes Yes Yes No
Function: The native file path for an item.

Feedback, Comments & Corrections

FileListMBS.LastAccessDate(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 9.1 Yes Yes Yes Yes No
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.

See also:

Feedback, Comments & Corrections

FileListMBS.LastAccessDate(index as Integer, UTC as boolean) as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 13.4 Yes Yes Yes Yes No
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.

See also:

Feedback, Comments & Corrections

FileListMBS.LogicalDataLength(index as Integer) as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
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.

Feedback, Comments & Corrections

FileListMBS.LogicalResourceLength(index as Integer) as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
Function: The logical resource length of the item with the given index.
Notes: Raises an exception if index is out of bounds. Index is zero based.

Feedback, Comments & Corrections

FileListMBS.ModificationDate(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
Function: The modification date.
Notes:
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:

Feedback, Comments & Corrections

FileListMBS.ModificationDate(index as Integer, UTC as boolean) as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 13.4 Yes Yes Yes Yes No
Function: The modification 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.

See also:

Feedback, Comments & Corrections

FileListMBS.Name(index as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 5.1 Yes Yes Yes Yes No
Function: The name of the item with the given index.
Notes:
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.

Feedback, Comments & Corrections

FileListMBS.NodeID(index as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS Util Plugin 9.1 Yes No Yes Yes No
Function: The Mac node ID for the given file or directory.
Notes:
The node id is zero on Windows and Linux.
Raises an exception if index is out of bounds. Index is zero based.

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo Chart Plugins