C# 클래스 EpLibrary.cs.FolderHelper

This is a class for Folder Processing Class
파일 보기 프로젝트 열기: juhgiyo/EpLibrary.cs 1 사용 예제들

공개 메소드들

메소드 설명
ChooseFolder ( String title ) : String

Show the Choose Folder Dialog and return true if successfully folder is chosen with chosen folder path.

ChooseFolder ( String title, Environment rootFolder ) : String

Show the Choose Folder Dialog and return true if successfully folder is chosen with chosen folder path.

CopyFile ( String fromFile, String toFile, bool overWrite = true ) : bool

Copy the source file to the destination file

CreateFolder ( String path ) : DirectoryInfo

Create given folder path from file system

DeleteFolder ( String path ) : void

Delete given folder path from file system

GetDirList ( string dirPath ) : List

Get the directory and file list of given path

GetFileExtension ( String filePath ) : String

Return only the extension of given file path

GetFileName ( String filePath ) : String

Return the simple name of the file

GetFileTitle ( String filePath ) : String

Return the simple name of the file without extension

GetModuleFileDirectory ( ) : String

Return only the directory ending with "\" which contains the current executable file

GetModuleFileName ( ) : String

Return the full path with file name for the current executable file

GetPathOnly ( String filePath ) : String

Return only the directory of given file path with file name

IsDirectoryExist ( String path ) : bool

Check if the given directory exists

IsFileExist ( String path ) : bool

Check if the given file path exists

IsPathExist ( String path ) : bool

Check if the given path exists

비공개 메소드들

메소드 설명
GetModuleFileName ( IntPtr hModule, StringBuilder lpFilename, int nSize ) : int

메소드 상세

ChooseFolder() 공개 정적인 메소드

Show the Choose Folder Dialog and return true if successfully folder is chosen with chosen folder path.
public static ChooseFolder ( String title ) : String
title String the title of the choose folder dialog
리턴 String

ChooseFolder() 공개 정적인 메소드

Show the Choose Folder Dialog and return true if successfully folder is chosen with chosen folder path.
public static ChooseFolder ( String title, Environment rootFolder ) : String
title String the title of the choose folder dialog
rootFolder System.Environment the root folder
리턴 String

CopyFile() 공개 정적인 메소드

Copy the source file to the destination file
public static CopyFile ( String fromFile, String toFile, bool overWrite = true ) : bool
fromFile String the source file path
toFile String the destination file path
overWrite bool overwrite if exist
리턴 bool

CreateFolder() 공개 정적인 메소드

Create given folder path from file system
public static CreateFolder ( String path ) : DirectoryInfo
path String the file path to create
리턴 System.IO.DirectoryInfo

DeleteFolder() 공개 정적인 메소드

Delete given folder path from file system
public static DeleteFolder ( String path ) : void
path String the file path to delete
리턴 void

GetDirList() 공개 정적인 메소드

Get the directory and file list of given path
public static GetDirList ( string dirPath ) : List
dirPath string the folder path
리턴 List

GetFileExtension() 공개 정적인 메소드

Return only the extension of given file path
public static GetFileExtension ( String filePath ) : String
filePath String the full path of the file with file name
리턴 String

GetFileName() 공개 정적인 메소드

Return the simple name of the file
public static GetFileName ( String filePath ) : String
filePath String the full path of the file with file name
리턴 String

GetFileTitle() 공개 정적인 메소드

Return the simple name of the file without extension
public static GetFileTitle ( String filePath ) : String
filePath String the full path of the file with file name
리턴 String

GetModuleFileDirectory() 공개 정적인 메소드

Return only the directory ending with "\" which contains the current executable file
public static GetModuleFileDirectory ( ) : String
리턴 String

GetModuleFileName() 공개 정적인 메소드

Return the full path with file name for the current executable file
public static GetModuleFileName ( ) : String
리턴 String

GetPathOnly() 공개 정적인 메소드

Return only the directory of given file path with file name
public static GetPathOnly ( String filePath ) : String
filePath String the full path of the file with file name
리턴 String

IsDirectoryExist() 공개 정적인 메소드

Check if the given directory exists
public static IsDirectoryExist ( String path ) : bool
path String the directory path to check
리턴 bool

IsFileExist() 공개 정적인 메소드

Check if the given file path exists
public static IsFileExist ( String path ) : bool
path String the file path to check
리턴 bool

IsPathExist() 공개 정적인 메소드

Check if the given path exists
public static IsPathExist ( String path ) : bool
path String the path to check
리턴 bool