Platforms to show: All Mac Windows Linux Cross-Platform

Back to DirectorySizeMBS class.

Previous items

DirectorySizeMBS.VisibleFolderCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of visible folders.
Example
dim f as FolderItem = SpecialFolder.desktop
dim d as DirectorySizeMBS = f.CalculateDirectorySizeMBS(True,0)
MsgBox str(d.VisibleFolderCount)+" visible folders"

(Read and Write property)

DirectorySizeMBS.VisibleItemCount as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of visible items.
Example
dim f as FolderItem = SpecialFolder.desktop
dim d as DirectorySizeMBS = f.CalculateDirectorySizeMBS(True,0)
MsgBox str(d.VisibleItemCount)+" visible items"

Items are folders or files.
VisibleItemCount=VisibleFolderCount+VisibleFilesCount
(Read only property)

DirectorySizeMBS.VisibleLogicalDataForkSize as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The logical size of the data forks of all visible file in Bytes.
Example
dim f as FolderItem = SpecialFolder.desktop
dim d as DirectorySizeMBS = f.CalculateDirectorySizeMBS(True,0)
MsgBox "Logical data fork size of visible files: "+Format(d.VisibleLogicalDataForkSize/1000000,"0")+" MB"

(Read and Write property)

DirectorySizeMBS.VisibleLogicalResourceForkSize as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The logical size of the resource forks of all visible file in Bytes.
Example
dim f as FolderItem = SpecialFolder.desktop
dim d as DirectorySizeMBS = f.CalculateDirectorySizeMBS(True,0)
MsgBox "Logical resource fork size of visible files: "+Format(d.VisibleLogicalResourceForkSize/1000000,"0")+" MB"

(Read and Write property)

DirectorySizeMBS.VisibleLogicalTotalSize as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The logical size of the both forks of all visible file in Bytes.
Example
dim f as FolderItem = SpecialFolder.desktop
dim d as DirectorySizeMBS = f.CalculateDirectorySizeMBS(True,0)
MsgBox "Logical total size of visible files: "+Format(d.VisibleLogicalTotalSize/1000000,"0")+" MB"

(Read only property)

DirectorySizeMBS.VisiblePhysicalDataForkSize as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The physical size of the data forks of all visible file in Bytes.
Example
dim f as FolderItem = SpecialFolder.desktop
dim d as DirectorySizeMBS = f.CalculateDirectorySizeMBS(True,0)
MsgBox "Physical data fork size of visible files: "+Format(d.VisiblePhysicalDataForkSize/1000000,"0")+" MB"

(Read and Write property)

DirectorySizeMBS.VisiblePhysicalResourceForkSize as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The physical size of the resource forks of all visible file in Bytes.
Example
dim f as FolderItem = SpecialFolder.desktop
dim d as DirectorySizeMBS = f.CalculateDirectorySizeMBS(True,0)
MsgBox "Physical resource fork size of visible files: "+Format(d.VisiblePhysicalResourceForkSize/1000000,"0")+" MB"

(Read and Write property)

DirectorySizeMBS.VisiblePhysicalTotalSize as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The physical size of the both forks of all visible file in Bytes.
Example
dim f as FolderItem = SpecialFolder.desktop
dim d as DirectorySizeMBS = f.CalculateDirectorySizeMBS(True,0)
MsgBox "Physical total size of visible files: "+Format(d.VisiblePhysicalTotalSize/1000000,"0")+" MB"

(Read only property)

DirectorySizeMBS.YieldTicks as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 7.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
How much time is given back to Xojo for other ticks.
Example
dim d as DirectorySizeMBS // your DirectorySizeMBS object
d.YieldTicks=6 // only use 1/10th of a second

If value is greater than zero, the application will yield to another Xojo thread after the given number of ticks have passed. 60 ticks are one second. Using a small value can slow down processing a lot while a big value keeps your application not responding to mouse clicks.
If you use this property with e.g. 6 as the value, you may also want to use this method in a thread so you can handle mouse events or let Xojo redraw a progressbar.
(Read and Write property)

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...