C# 클래스 NSoft.NFramework.Web.Services.FileService.Repositories.FileRepositoryBase

파일저장소 관련 API 제공 서비스
상속: IFileRepository
파일 보기 프로젝트 열기: debop/NFramework

공개 메소드들

메소드 설명
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

저장소에 저장한다.

메소드 상세

CreateDirectory() 공개 추상적인 메소드

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

DeleteFile() 공개 추상적인 메소드

파일 삭제
public abstract DeleteFile ( ) : void
리턴 void

DirectoryExists() 공개 추상적인 메소드

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

FileExists() 공개 추상적인 메소드

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

GetFileSize() 공개 추상적인 메소드

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

GetFileStream() 공개 추상적인 메소드

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

GetFiles() 공개 추상적인 메소드

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

GetFullPath() 공개 메소드

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

GetNewFileName() 공개 추상적인 메소드

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

SaveAs() 공개 추상적인 메소드

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

SaveAs() 공개 추상적인 메소드

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