Table of Contents

Class PathFormatDetectorService

Namespace
SunamoFileSystem.Services
Assembly
SunamoFileSystem.dll

Service for detecting path format (Windows vs Unix).

public class PathFormatDetectorService
Inheritance
PathFormatDetectorService
Inherited Members
Extension Methods

Constructors

PathFormatDetectorService(ILogger)

Service for detecting path format (Windows vs Unix).

public PathFormatDetectorService(ILogger logger)

Parameters

logger ILogger

Logger instance for diagnostic messages.

Methods

DetectPathType(string, bool)

Return true if Windows, false if Unix

public bool? DetectPathType(string path, bool logIfIsNotUnixOrWindowsPath = false)

Parameters

path string
logIfIsNotUnixOrWindowsPath bool

Returns

bool?

IsWindowsPathFormat(string)

Determines whether the specified path uses Windows path format (e.g., C:\folder).

public bool IsWindowsPathFormat(string path)

Parameters

path string

The file system path to check.

Returns

bool

True if the path uses Windows path format; otherwise, false.