Skip to content

Interface IDeviceFileSystem

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

Provides an abstraction for file system operations on MicroPython/CircuitPython devices.

csharp
public interface IDeviceFileSystem

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.