Skip to main content

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.

public static class FileSystem

Methods​

Flush(nint hdc)​

public static void Flush(nint hdc)

Writes everything to the drive: call it before the drive is pulled out

Mount(nint hdc)​

public static DriveInfo Mount(nint hdc)

Mounts the drive (if it is not yet) and gives its folder, "/media/usb0/"

Returns DriveInfo

Unmount(nint hdc)​

public static void Unmount(nint hdc)

Unmounts the drive. Call FileSystem.Flush first if data was written and the drive is about to be pulled out.