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
loggerILoggerLogger instance for diagnostic messages.
Methods
DetectPathType(string, bool)
Return true if Windows, false if Unix
public bool? DetectPathType(string path, bool logIfIsNotUnixOrWindowsPath = false)
Parameters
Returns
- bool?
IsWindowsPathFormat(string)
Determines whether the specified path uses Windows path format (e.g., C:\folder).
public bool IsWindowsPathFormat(string path)
Parameters
pathstringThe file system path to check.
Returns
- bool
True if the path uses Windows path format; otherwise, false.