Skip to content

Class DeviceFileSystem

Namespace: Belay.Sync
Assembly: Belay.Sync.dll

Implements file system operations for MicroPython/CircuitPython devices.

csharp
public sealed class DeviceFileSystem : IDeviceFileSystem

Inheritance

objectDeviceFileSystem

Implements

IDeviceFileSystem

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

DeviceFileSystem(Device, ILogger<DeviceFileSystem>?)

Initializes a new instance of the class.

Methods

CalculateChecksumAsync(string, string, CancellationToken)

Calculates a checksum for the specified file.

CreateDirectoryAsync(string, bool, CancellationToken)

Creates a directory on the device.

DeleteDirectoryAsync(string, bool, CancellationToken)

Deletes a directory from the device.

DeleteFileAsync(string, CancellationToken)

Deletes a file from the device.

ExistsAsync(string, CancellationToken)

Checks whether a file or directory exists on the device.

GetFileInfoAsync(string, CancellationToken)

Gets information about a specific file or directory on the device.

ListAsync(string, bool, CancellationToken)

Lists the contents of a directory on the device.

ReadFileAsync(string, CancellationToken)

Reads the entire contents of a file from the device.

ReadTextFileAsync(string, CancellationToken)

Reads the entire contents of a text file from the device.

WriteFileAsync(string, byte[], CancellationToken)

Writes data to a file on the device, creating it if necessary.

WriteTextFileAsync(string, string, CancellationToken)

Writes text to a file on the device, creating it if necessary.

Released under the Apache License 2.0.