C# Class FolderManagement.FileStorageService

Show file Open project: dream-365/toolkit Class Usage Examples

Public Methods

Method Description
QueryFiles ( string root, string regex ) : IEnumerable
QueryFolders ( string root, string regex ) : IEnumerable
ReanmePreview ( string name, string regex, string format ) : string
RenameFile ( string fullPath, string regex, string format ) : string
RenameFolder ( string fullPath, string regex, string format ) : string

Private Methods

Method Description
CreateDirectoryIfNotExists ( string dir ) : void
InternalRename ( string name, string regex, string format ) : string

Method Details

QueryFiles() public method

public QueryFiles ( string root, string regex ) : IEnumerable
root string
regex string
return IEnumerable

QueryFolders() public method

public QueryFolders ( string root, string regex ) : IEnumerable
root string
regex string
return IEnumerable

ReanmePreview() public method

public ReanmePreview ( string name, string regex, string format ) : string
name string
regex string
format string
return string

RenameFile() public method

public RenameFile ( string fullPath, string regex, string format ) : string
fullPath string
regex string
format string
return string

RenameFolder() public method

public RenameFolder ( string fullPath, string regex, string format ) : string
fullPath string
regex string
format string
return string