Skip to main content

IDriveProvider Interface

Namespace: GHIElectronics.TinyCLR.IO · Assembly: GHIElectronics.TinyCLR.IO

No description available.

public interface IDriveProvider

Properties

DriveType

DriveType DriveType { get; }

No description available.

DriveFormat

string DriveFormat { get; }

No description available.

IsReady

bool IsReady { get; }

No description available.

AvailableFreeSpace

long AvailableFreeSpace { get; }

No description available.

TotalFreeSpace

long TotalFreeSpace { get; }

No description available.

TotalSize

long TotalSize { get; }

Total size of the region, in bytes. (inherited)

VolumeLabel

string VolumeLabel { get; }

No description available.

Name

string Name { get; }

The native API name. (inherited)

Methods

Find(string path, string searchPattern)

IFileSystemEntryFinder Find(string path, string searchPattern)

Locates a native API by name and type. (inherited)

ParameterTypeDescription
pathstring
searchPatternstring

Returns IFileSystemEntryFinder

GetFileSystemEntry(string path)

FileSystemEntry GetFileSystemEntry(string path)

No description available.

ParameterTypeDescription
pathstring

Returns FileSystemEntry

OpenFile(string path, int bufferSize)

IFileStream OpenFile(string path, int bufferSize)

No description available.

ParameterTypeDescription
pathstring
bufferSizeint

Returns IFileStream

Delete(string path)

void Delete(string path)

Deletes a file from the device. (inherited)

ParameterTypeDescription
pathstring

Move(string source, string destination)

bool Move(string source, string destination)

Moves a file from the source to the destination. (inherited)

ParameterTypeDescription
sourcestring
destinationstring

Returns bool

CreateDirectory(string path)

void CreateDirectory(string path)

No description available.

ParameterTypeDescription
pathstring

GetAttributes(string path)

FileAttributes GetAttributes(string path)

No description available.

ParameterTypeDescription
pathstring

Returns FileAttributes

SetAttributes(string path, FileAttributes attributes)

void SetAttributes(string path, FileAttributes attributes)

No description available.

ParameterTypeDescription
pathstring
attributesFileAttributes

Initialize(string name)

void Initialize(string name)

No description available.

ParameterTypeDescription
namestring