C# 클래스 Orchard.FileSystems.Media.FileSystemStorageProvider

상속: IStorageProvider
파일 보기 프로젝트 열기: ucdavis/Orchard 1 사용 예제들

공개 메소드들

메소드 설명
Combine ( string path1, string path2 ) : string

Combines to paths.

CreateFile ( string path ) : IStorageFile

Creates a file in the storage provider.

CreateFolder ( string path ) : void

Creates a folder in the storage provider.

DeleteFile ( string path ) : void

Deletes a file in the storage provider.

DeleteFolder ( string path ) : void

Deletes a folder in the storage provider.

FileSystemStorageProvider ( ShellSettings settings ) : System
GetFile ( string path ) : IStorageFile

Retrieves a file within the storage provider.

GetPublicUrl ( string path ) : string

Retrieves the public URL for a given file within the storage provider.

ListFiles ( string path ) : IEnumerable

Lists the files within a storage provider's path.

ListFolders ( string path ) : IEnumerable

Lists the folders within a storage provider's path.

RenameFile ( string oldPath, string newPath ) : void

Renames a file in the storage provider.

RenameFolder ( string oldPath, string newPath ) : void

Renames a folder in the storage provider.

SaveStream ( string path, Stream inputStream ) : void

Saves a stream in the storage provider.

TryCreateFolder ( string path ) : bool

Tries to create a folder in the storage provider.

TrySaveStream ( string path, Stream inputStream ) : bool

Tries to save a stream in the storage provider.

비공개 메소드들

메소드 설명
Fix ( string path ) : string
IsHidden ( FileSystemInfo di ) : bool
MapPublic ( string path ) : string

Maps a relative path into the public path.

MapStorage ( string path ) : string

Maps a relative path into the storage path.

메소드 상세

Combine() 공개 메소드

Combines to paths.
public Combine ( string path1, string path2 ) : string
path1 string The parent path.
path2 string The child path.
리턴 string

CreateFile() 공개 메소드

Creates a file in the storage provider.
If the file already exists.
public CreateFile ( string path ) : IStorageFile
path string The relative path to the file to be created.
리턴 IStorageFile

CreateFolder() 공개 메소드

Creates a folder in the storage provider.
If the folder already exists.
public CreateFolder ( string path ) : void
path string The relative path to the folder to be created.
리턴 void

DeleteFile() 공개 메소드

Deletes a file in the storage provider.
If the file doesn't exist.
public DeleteFile ( string path ) : void
path string The relative path to the file to be deleted.
리턴 void

DeleteFolder() 공개 메소드

Deletes a folder in the storage provider.
If the folder doesn't exist.
public DeleteFolder ( string path ) : void
path string The relative path to the folder to be deleted.
리턴 void

FileSystemStorageProvider() 공개 메소드

public FileSystemStorageProvider ( ShellSettings settings ) : System
settings Orchard.Environment.Configuration.ShellSettings
리턴 System

GetFile() 공개 메소드

Retrieves a file within the storage provider.
If the file is not found.
public GetFile ( string path ) : IStorageFile
path string The relative path to the file within the storage provider.
리턴 IStorageFile

GetPublicUrl() 공개 메소드

Retrieves the public URL for a given file within the storage provider.
public GetPublicUrl ( string path ) : string
path string The relative path within the storage provider.
리턴 string

ListFiles() 공개 메소드

Lists the files within a storage provider's path.
public ListFiles ( string path ) : IEnumerable
path string The relative path to the folder which files to list.
리턴 IEnumerable

ListFolders() 공개 메소드

Lists the folders within a storage provider's path.
public ListFolders ( string path ) : IEnumerable
path string The relative path to the folder which folders to list.
리턴 IEnumerable

RenameFile() 공개 메소드

Renames a file in the storage provider.
public RenameFile ( string oldPath, string newPath ) : void
oldPath string The relative path to the file to be renamed.
newPath string The relative path to the new file.
리턴 void

RenameFolder() 공개 메소드

Renames a folder in the storage provider.
public RenameFolder ( string oldPath, string newPath ) : void
oldPath string The relative path to the folder to be renamed.
newPath string The relative path to the new folder.
리턴 void

SaveStream() 공개 메소드

Saves a stream in the storage provider.
If the stream can't be saved due to access permissions.
public SaveStream ( string path, Stream inputStream ) : void
path string The relative path to the file to be created.
inputStream Stream The stream to be saved.
리턴 void

TryCreateFolder() 공개 메소드

Tries to create a folder in the storage provider.
public TryCreateFolder ( string path ) : bool
path string The relative path to the folder to be created.
리턴 bool

TrySaveStream() 공개 메소드

Tries to save a stream in the storage provider.
public TrySaveStream ( string path, Stream inputStream ) : bool
path string The relative path to the file to be created.
inputStream Stream The stream to be saved.
리턴 bool