FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Core.Extensions.FileSystemExtensions Class Reference

Provides extension methods for working with file-system models. More...

Static Public Member Functions

static Location GetLocation (this IFileSystem fileSystem, string path)
 Creates a Location from a file system and path.
static IPathTools PathTools (this Location location)
 Gets path tools associated with the location's file system.

Detailed Description

Provides extension methods for working with file-system models.

Member Function Documentation

◆ GetLocation()

Location FileSurfer.Core.Extensions.FileSystemExtensions.GetLocation ( this IFileSystem fileSystem,
string path )
inlinestatic

Creates a Location from a file system and path.

Parameters
fileSystemThe file system that owns the path.
pathThe path within the file system.
Returns
The created location.

◆ PathTools()

IPathTools FileSurfer.Core.Extensions.FileSystemExtensions.PathTools ( this Location location)
inlinestatic

Gets path tools associated with the location's file system.

Parameters
locationThe location to resolve path tools for.
Returns
The path tools for the location.

The documentation for this class was generated from the following file:
  • /home/janecea/Documents/CODE/PROJECTS/FileSurfer/src/FileSurfer.Core/Extensions/ModelExtensions.cs