FileSystem Class
Package: GHIElectronics.Endpoint.Devices.Storage
Namespace: GHIElectronics.Endpoint.Devices.Storage
Mount / flush / unmount a drive the Storage.StorageController reported. Pass the DeviceConnectionEventArgs.Hdc from the event.
class FileSystem {};
Methods
Flush(nint hdc)
static void Flush(intptr_t hdc);
Writes everything to the drive: call it before the drive is pulled out
Mount(nint hdc)
static DriveInfo Mount(intptr_t hdc);
Mounts the drive (if it is not yet) and gives its folder, "/media/usb0/"
Returns DriveInfo
Unmount(nint hdc)
static void Unmount(intptr_t hdc);
Unmounts the drive. Call FileSystem.Flush first if data was written and the drive is about to be pulled out.