Class DevicePathUtil
Namespace: Belay.Sync
Assembly: Belay.Sync.dll
Provides utilities for handling device file paths in a cross-platform manner. MicroPython/CircuitPython devices use Unix-style paths regardless of the host OS.
public static class DevicePathUtil
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Fields
The root directory path on devices.
The path separator used on MicroPython/CircuitPython devices (always forward slash).
Methods
Combines multiple path segments into a single device path.
Converts a host file system path to a device path format.
Gets the directory name of the specified path.
Gets the extension of the specified path.
Gets the file name from the specified path.
GetFileNameWithoutExtension(string)
Gets the file name without its extension.
IsUnderDirectory(string, string)
Determines if the specified path is under the given parent directory.
Determines whether the specified path is a valid device path.
Normalizes a device path by ensuring it uses forward slashes and removing redundant separators.
Converts a device path to a host file system path format.