FolderItem.VirtualVolume

From Xojo Documentation

Property (As VirtualVolume )
aFolderItem.VirtualVolume = newVirtualVolumeValue
or
VirtualVolumeValue = aFolderItem.VirtualVolume

Supported for all project types and targets.

If the FolderItem is in a VirtualVolume, it returns the VirtualVolume that stores the file. If it is a real file, it returns Nil.

Example

Var f As New FolderItem
f = FolderItem.ShowOpenFileDialog("????")

If f.VirtualVolume <> Nil Then
MessageBox(f.VirtualVolume.Root.Name)
Else
MessageBox("The folderitem is not a virtual volume.")
End If