C# Class NSoft.NFramework.Web.Services.FileService.Repositories.FileRepositoryBase

파일저장소 관련 API 제공 서비스
Inheritance: IFileRepository
ファイルを表示 Open project: debop/NFramework

Public Methods

Method Description
CreateDirectory ( string path ) : void

디렉터리 존재여부

DeleteFile ( ) : void

파일 삭제

DirectoryExists ( string path ) : bool

디렉터리 존재여부

FileExists ( string fileName ) : bool

파일 존재여부

GetFileSize ( string fileName ) : long

파일의 크기를 반환합니다.

GetFileStream ( string fileName ) : Stream

파일의 Stream 을 반환합니다.

GetFiles ( string path ) : string[]

저장한 폴더내에 있는 파일목록을 반환합니다.

GetFullPath ( string fileName ) : string

Root 경로와 해당 경로를 Combine한 경로를 반환합니다.

GetNewFileName ( string fileName ) : string

지정된 파일명이 있다면 새로운 파일명을 생성한다.

SaveAs ( Stream stream, string destFile, bool overwrite ) : Task

저장소에 저장한다.

SaveAs ( string srcFile, string destFile, bool overwrite ) : Task

저장소에 저장한다.

Method Details

CreateDirectory() public abstract method

디렉터리 존재여부
public abstract CreateDirectory ( string path ) : void
path string 경로
return void

DeleteFile() public abstract method

파일 삭제
public abstract DeleteFile ( ) : void
return void

DirectoryExists() public abstract method

디렉터리 존재여부
public abstract DirectoryExists ( string path ) : bool
path string 경로
return bool

FileExists() public abstract method

파일 존재여부
public abstract FileExists ( string fileName ) : bool
fileName string 파일명
return bool

GetFileSize() public abstract method

파일의 크기를 반환합니다.
public abstract GetFileSize ( string fileName ) : long
fileName string 파일경로
return long

GetFileStream() public abstract method

파일의 Stream 을 반환합니다.
public abstract GetFileStream ( string fileName ) : Stream
fileName string 파일경로
return System.IO.Stream

GetFiles() public abstract method

저장한 폴더내에 있는 파일목록을 반환합니다.
public abstract GetFiles ( string path ) : string[]
path string 경로
return string[]

GetFullPath() public method

Root 경로와 해당 경로를 Combine한 경로를 반환합니다.
public GetFullPath ( string fileName ) : string
fileName string 파일 경로
return string

GetNewFileName() public abstract method

지정된 파일명이 있다면 새로운 파일명을 생성한다.
public abstract GetNewFileName ( string fileName ) : string
fileName string 파일명
return string

SaveAs() public abstract method

저장소에 저장한다.
public abstract SaveAs ( Stream stream, string destFile, bool overwrite ) : Task
stream System.IO.Stream 저장할 Stream
destFile string 대상 파일경로
overwrite bool 덮어쓰기 여부
return Task

SaveAs() public abstract method

저장소에 저장한다.
public abstract SaveAs ( string srcFile, string destFile, bool overwrite ) : Task
srcFile string 원본 파일경로
destFile string 대상 파일경로
overwrite bool 덮어쓰기 여부
return Task