C# Class FubarDev.FtpServer.ListFormatters.FactsListFormatter

A formatter for the MLST command
Inheritance: IListFormatter
Datei anzeigen Open project: FubarDevelopment/FtpServer Class Usage Examples

Public Methods

Method Description
FactsListFormatter ( FubarDev.FtpServer.AccountManagement.FtpUser user, DirectoryListingEnumerator enumerator, ISet activeFacts, bool absoluteName ) : System

Initializes a new instance of the FactsListFormatter class.

Format ( IUnixFileSystemEntry entry, string name ) : string

Private Methods

Method Description
BuildFacts ( [ directoryEntry, [ entry ) : IReadOnlyList
BuildFacts ( [ parentEntry, [ currentEntry, TypeFact typeFact ) : IReadOnlyList
BuildLine ( [ facts, string entryName ) : string
FormatParentDirectoryEntry ( ) : string
FormatThisDirectoryEntry ( ) : string

Method Details

FactsListFormatter() public method

Initializes a new instance of the FactsListFormatter class.
public FactsListFormatter ( FubarDev.FtpServer.AccountManagement.FtpUser user, DirectoryListingEnumerator enumerator, ISet activeFacts, bool absoluteName ) : System
user FubarDev.FtpServer.AccountManagement.FtpUser The user to create this formatter for
enumerator DirectoryListingEnumerator The enumerator for the directory listing to format
activeFacts ISet The active facts to return for the entries
absoluteName bool Returns an absolute entry name
return System

Format() public method

public Format ( IUnixFileSystemEntry entry, string name ) : string
entry IUnixFileSystemEntry
name string
return string