C# Class vlko.BlogModule.NH.Commands.FileBrowserCommands

Inheritance: IFileBrowserCommands
Mostra file Open project: vlko/vlko

Public Properties

Property Type Description
UserDirectoryName string

Public Methods

Method Description
DeleteFile ( string user, string fileIdent ) : bool

Deletes the file.

GetAllUserFileInfos ( string user ) : IEnumerable

Gets all user files.

GetFileInfo ( string user, string fileIdent ) : FileViewModel

Gets the file info.

SanitizeFileName ( string fileName ) : string

Sanitizes the name of the file.

SaveFile ( string user, string fileIdent, Stream fileStream ) : bool

Saves the file.

Private Methods

Method Description
FileBrowserCommands ( IAppInfoService appInfo ) : System

Method Details

DeleteFile() public method

Deletes the file.
public DeleteFile ( string user, string fileIdent ) : bool
user string The user.
fileIdent string The file ident.
return bool

GetAllUserFileInfos() public method

Gets all user files.
public GetAllUserFileInfos ( string user ) : IEnumerable
user string The user.
return IEnumerable

GetFileInfo() public method

Gets the file info.
public GetFileInfo ( string user, string fileIdent ) : FileViewModel
user string The user.
fileIdent string The file ident.
return FileViewModel

SanitizeFileName() public static method

Sanitizes the name of the file.
public static SanitizeFileName ( string fileName ) : string
fileName string Name of the file.
return string

SaveFile() public method

Saves the file.
public SaveFile ( string user, string fileIdent, Stream fileStream ) : bool
user string The user.
fileIdent string The file ident.
fileStream Stream The file stream.
return bool

Property Details

UserDirectoryName public_oe property

public string UserDirectoryName
return string