|
FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
|
Represents a displayable file system entry (file, or directory) in the FileSurfer application. More...


Public Member Functions | |
| FileSystemEntryViewModel (IFileSystem fileSystem, FileEntryInfo entry) | |
| Initializes a new instance of the FileSystemEntryViewModel class for a file or directory. | |
| FileSystemEntryViewModel (IFileSystem fileSystem, DirectoryEntryInfo entry) | |
| Initializes a new instance of the FileSystemEntryViewModel class for a directory. | |
Static Public Member Functions | |
| static string | GetSizeString (long sizeInB) |
| Converts file size in bytes to a human-readable format. | |
Package Functions | |
| void | UpdateGitStatus (GitStatus newStatus) |
| Updates version-control flags shown for this entry based on a new Git status value. | |
Properties | |
| string | PathToEntry [get] |
| Path to the file, directory, or drive represented by this FileSystemEntryViewModel. | |
| bool | IsDirectory [get] |
| Specifies if this FileSystemEntryViewModel is a directory. | |
| Bitmap? | Icon [get] |
| Holds a Bitmap representing the file. | |
| string | Name [get] |
| Holds the name of file, directory, or drive represented by this FileSystemEntryViewModel. | |
| DateTime | LastModTime [get] |
| Holds the DateTime of this entry's last modification date. | |
| string | LastModified [get] |
| Holds this entry's last modification date as string. | |
| long? | SizeB [get] |
| Holds this entry's size in bytes. | |
| string | Size [get] |
| Holds this entry's size as human-readable string. | |
| string | Type [get] |
| Holds this entry's type in the context of FileSurfer. | |
| double | Opacity [get] |
| Holds this FileSystemEntryViewModel's opacity in the context of Views.MainWindow. | |
| bool | VersionControlled [get] |
| Specifies if the file represented by this FileSystemEntryViewModel is part of a repository. | |
| bool | Staged [get] |
| Specifies if the file represented by this FileSystemEntryViewModel has been staged for the next commit. | |
| bool | IsArchived = false [get] |
| Specifies if the file is in an archived format supported by FileSurfer. | |
| bool | SupportsOpenAs [get] |
| Specifies if the open as dialog can be invoked on this entry. | |
| IFileSystemEntry | FileSystemEntry [get] |
| Holds the underlying IFileSystemEntry. | |
Represents a displayable file system entry (file, or directory) in the FileSurfer application.
Manages properties associated with files and directories, such as their name, size, type, last modification time, and icon. Also includes data about special conditions like hidden files, or version control status.
|
inline |
Initializes a new instance of the FileSystemEntryViewModel class for a file or directory.
Sets up properties like the name, icon, size, type, and last modified date based on the provided path and version control status.
| fileSystem | The file-system services used to resolve icon data, archive capabilities, and visibility state. |
| entry | The file entry model used to initialize metadata such as size, extension, and timestamps. |

|
inline |
Initializes a new instance of the FileSystemEntryViewModel class for a directory.
Sets up directory-specific display data and asynchronously resolves the directory icon.
| fileSystem | The file-system services used to resolve icon data, archive capabilities, and visibility state. |
| entry | The directory entry model used to initialize metadata such as name and timestamps. |

|
inlinestatic |
Converts file size in bytes to a human-readable format.
| sizeInB | Size of the file in bytes |

|
inlinepackage |
Updates version-control flags shown for this entry based on a new Git status value.
| newStatus | The Git status to apply when determining whether the entry is tracked and staged. |
|
get |
Holds the underlying IFileSystemEntry.
|
get |
Holds a Bitmap representing the file.
|
get |
Specifies if the file is in an archived format supported by FileSurfer.
|
get |
Specifies if this FileSystemEntryViewModel is a directory.
|
get |
Holds this entry's last modification date as string.
|
get |
Holds the DateTime of this entry's last modification date.
|
get |
Holds the name of file, directory, or drive represented by this FileSystemEntryViewModel.
|
get |
Holds this FileSystemEntryViewModel's opacity in the context of Views.MainWindow.
|
get |
Path to the file, directory, or drive represented by this FileSystemEntryViewModel.
|
get |
Holds this entry's size as human-readable string.
|
get |
Holds this entry's size in bytes.
|
get |
Specifies if the file represented by this FileSystemEntryViewModel has been staged for the next commit.
|
get |
Specifies if the open as dialog can be invoked on this entry.
|
get |
Holds this entry's type in the context of FileSurfer.
|
get |
Specifies if the file represented by this FileSystemEntryViewModel is part of a repository.