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

Implementation of IFileSystemEntry for a file. More...

Inheritance diagram for FileSurfer.Core.Models.FileEntry:
Collaboration diagram for FileSurfer.Core.Models.FileEntry:

Public Member Functions

 FileEntry (string pathToFile, IPathTools pathTools)
 Initializes a new FileEntry from a path using path-tool name and extension parsing.

Protected Member Functions

 FileEntry (string pathToFile, string name, string extension)
 Initializes a new FileEntry from precomputed path, name, and extension values.

Properties

string PathToEntry [get]
 Path to the file, directory, or drive represented by this IFileSystemEntry.
string Name [get]
 Holds the name of file, directory, or drive represented by this IFileSystemEntry.
string Extension [get]
 Holds the extension of this file's name.
string NameWoExtension [get]
 Holds this entry's name without the extension.

Detailed Description

Implementation of IFileSystemEntry for a file.

Constructor & Destructor Documentation

◆ FileEntry() [1/2]

FileSurfer.Core.Models.FileEntry.FileEntry ( string pathToFile,
IPathTools pathTools )
inline

Initializes a new FileEntry from a path using path-tool name and extension parsing.

Parameters
pathToFileFull path to the file.
pathToolsPath utilities used to derive file name and extension.
Here is the call graph for this function:

◆ FileEntry() [2/2]

FileSurfer.Core.Models.FileEntry.FileEntry ( string pathToFile,
string name,
string extension )
inlineprotected

Initializes a new FileEntry from precomputed path, name, and extension values.

Parameters
pathToFileFull path to the file.
nameFile name.
extensionFile extension including dot, or an empty string.

Property Documentation

◆ Extension

string FileSurfer.Core.Models.FileEntry.Extension
get

Holds the extension of this file's name.

Implements FileSurfer.Core.Models.IFileSystemEntry.

◆ Name

string FileSurfer.Core.Models.FileEntry.Name
get

Holds the name of file, directory, or drive represented by this IFileSystemEntry.

Implements FileSurfer.Core.Models.IFileSystemEntry.

◆ NameWoExtension

string FileSurfer.Core.Models.FileEntry.NameWoExtension
get

Holds this entry's name without the extension.

Implements FileSurfer.Core.Models.IFileSystemEntry.

◆ PathToEntry

string FileSurfer.Core.Models.FileEntry.PathToEntry
get

Path to the file, directory, or drive represented by this IFileSystemEntry.

Implements FileSurfer.Core.Models.IFileSystemEntry.


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