Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

Folderitem.VolumeFreeSizeKBMBS as Int64
method, Files, MBS Util Plugin (Main), class Folderitem,
Mac: Yes, Win: Yes, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the size on the free space on volume which the folderitem objects points to.
Example:
msgBox "The volume with your system folder has "+str(specialfolder.system.volumeFreeSizeKBMBS)+" KBytes free."
This item is deprecated and should no longer be used. You can use VolumeFreeSizeMBS instead.
Notes:
This can't work with anything bigger than 2048 Gigabytes (until version 10.0).
Return value changed in version 10.0 from integer to SInt64.

Added Linux support in version 16.0.

Some examples which use this method:

Folderitem.VolumeFreeSizeMBS as Int64
method, Files, MBS Util Plugin (Main), class Folderitem,
Mac: Yes, Win: Yes, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the size of the free space of the volume which the folderitem objects points to.
Example:
// 1. a short:
msgBox "The volume with your system folder has "+str(specialfolder.system.VolumeFreeSizeMBS)+" Bytes free."
// 2. a nicer:
dim d as Double
dim s as string

d=specialfolder.system.VolumeFreeSizeMBS

if d>10000.0 then
if d>10000000.0 then
if d>10000000000.0 then
s=format(d/1024.0/1024.0/1024.0,"0")+" GigaBytes"
else
s=format(d/1024.0/1024.0,"0")+" MegaBytes"
end if
else
s=format(d/1024.0,"0")+" KiloBytes"
end if
else
s=format(d,"0")+" Bytes"
end if

msgBox "On your drive with the system folder you have "+s+" free."
Notes:
This should be used to handle any volume size.
Return value changed in version 10.0 from double to SInt64.

Added Linux support in version 16.0.

Some examples which use this method:

Folderitem.VolumeInformationMBS as VolumeInformationMBS
method, Files, MBS Mac Plugin (Mac), class Folderitem,
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns a VolumeInformationMBS object with detailed information about the volume where the folderitem's file is located on.
Notes: May return nil on errors.

Some examples which use this method:

Folderitem.VolumeSizeKBMBS as Int64
method, Files, MBS Util Plugin (Main), class Folderitem,
Mac: Yes, Win: Yes, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Size on the volume which the folderitem objects points to.
Example:
msgBox "The volume with your system folder is "+str(specialfolder.system.volumeSizeKBMBS)+" KB big."
This item is deprecated and should no longer be used. You can use VolumeSizeMBS instead.
Notes:
This can't work with anything bigger than 2048 Gigabytes (until plugin version 10.0).
Return value changed in version 10.0 from integer to SInt64.

Added Linux support in version 16.0.

Some examples which use this method:

Folderitem.VolumeSizeMBS as Int64
method, Files, MBS Util Plugin (Main), class Folderitem,
Mac: Yes, Win: Yes, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the size on the volume which the folderitem objects points to.
Example:
// 1. a short:
msgBox "The volume with your system folder is "+str(specialfolder.system.volumeSizeMBS)+" big."
// 2. a nicer:
dim d as Double
dim s as string

d=SpecialFolder.System.volumesizeMBS

if d>10000.0 then
if d>10000000.0 then
if d>10000000000.0 then
s=format(d/1024.0/1024.0/1024.0,"0")+" GigaBytes"
else
s=format(d/1024.0/1024.0,"0")+" MegaBytes"
end if
else
s=format(d/1024.0,"0")+" KiloBytes"
end if
else
s=format(d,"0")+" Bytes"
end if

msgBox "Your drive with the system folder is "+s+" big."
Notes:
This should be used to handle any volume size.
Return value changed in version 10.0 from double to SInt64.

Added Linux support in version 16.0.

Some examples which use this method:

folderitem.VolumeSupportsHugeFilesMBS as Integer
method, Files, MBS MacOSX Plugin (MacOSX), class folderitem,
Plugin version: 13.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Queries whether a volume supports 2 TB file size on Mac OS X.
Notes:
Some volumes only support 2 GB or 4 GB file size. Some can handle more than that up to 2 TB.
Returns 0 if not supported, 1 if supported and -1 if unknown.

Some examples which use this method:

folderitem.VolumeUUIDMBS as string
method, Files, MBS Util Plugin (Main), class folderitem,
Plugin version: 13.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Queries volume UUID.
Notes: Requires Mac OS X 10.7 or newer.
folderitem.WinThumbnailMBS(preferredSize as Integer = 512) as picture
method, Files, MBS Win Plugin (Win), class folderitem,
Plugin version: 14.3, Mac: No, Win: Yes, Linux: No, Console & Web: No, Feedback.

Function: Queries a thumbnail for an item.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
Backdrop = f.WinThumbnailMBS
Notes:
preferredSize is the size you'd like to have. Resulting image can be smaller or bigger.
Returns nil on any error.
If user disabled thumbnails for explorer, the shell also provides none for us, just icons.
Requires Windows Vista or newer.

Previous items

The items on this page are in the following plugins: MBS Mac Plugin, MBS MacOSX Plugin, MBS Util Plugin, MBS Win Plugin.




Links
MBS Xojo PDF Plugins