C# 클래스 Universe.Framework.Utilities.PathHelpers

파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

공개 메소드들

메소드 설명
ComputeFullPath ( string Path ) : string
GetFilenames ( string defaultDir, string extension, bool showextension ) : List
GetReadFilename ( string prompt, string defaultDir, List extensions, bool showextension ) : string

Gets file for reading and verifies that it exists.

GetReadFilename ( string prompt, string defaultDir, string extension, bool showextension ) : string

Gets file for reading and verifies that it exists.

PathHomeDrive ( string fName ) : string
PathUsername ( string Path ) : string
VerifyOSPath ( string filename ) : string

Verifies and corrects the OS path.

VerifyReadFile ( string fileName, List extensions, string defaultDir ) : string

Verifies file for reading, setting some defaults if needed.

VerifyReadFile ( string fileName, string defaultExt, string defaultDir ) : string

Verifies file for reading, setting some defaults if needed.

VerifyReadFile ( string fileName, string defaultExt, string defaultDir, bool showErrors ) : string

Verifies file for reading, setting some defaults if needed.

VerifyWriteFile ( string fileName, string defaultExt, string defaultDir, bool createPath ) : string

Verifies a file for writing setting some defaults if needed.

메소드 상세

ComputeFullPath() 공개 정적인 메소드

public static ComputeFullPath ( string Path ) : string
Path string
리턴 string

GetFilenames() 공개 정적인 메소드

public static GetFilenames ( string defaultDir, string extension, bool showextension ) : List
defaultDir string
extension string
showextension bool
리턴 List

GetReadFilename() 공개 정적인 메소드

Gets file for reading and verifies that it exists.
public static GetReadFilename ( string prompt, string defaultDir, List extensions, bool showextension ) : string
prompt string Prompt.
defaultDir string Default dir.
extensions List Extensions.
showextension bool If set to true showextension.
리턴 string

GetReadFilename() 공개 정적인 메소드

Gets file for reading and verifies that it exists.
public static GetReadFilename ( string prompt, string defaultDir, string extension, bool showextension ) : string
prompt string Prompt.
defaultDir string Defaultdir.
extension string Extension.
showextension bool
리턴 string

PathHomeDrive() 공개 정적인 메소드

public static PathHomeDrive ( string fName ) : string
fName string
리턴 string

PathUsername() 공개 정적인 메소드

public static PathUsername ( string Path ) : string
Path string
리턴 string

VerifyOSPath() 공개 정적인 메소드

Verifies and corrects the OS path.
public static VerifyOSPath ( string filename ) : string
filename string Filename.
리턴 string

VerifyReadFile() 공개 정적인 메소드

Verifies file for reading, setting some defaults if needed.
public static VerifyReadFile ( string fileName, List extensions, string defaultDir ) : string
fileName string File name.
extensions List Extensions.
defaultDir string Default dir.
리턴 string

VerifyReadFile() 공개 정적인 메소드

Verifies file for reading, setting some defaults if needed.
public static VerifyReadFile ( string fileName, string defaultExt, string defaultDir ) : string
fileName string File name.
defaultExt string Default ext.
defaultDir string Default dir.
리턴 string

VerifyReadFile() 공개 정적인 메소드

Verifies file for reading, setting some defaults if needed.
public static VerifyReadFile ( string fileName, string defaultExt, string defaultDir, bool showErrors ) : string
fileName string File name.
defaultExt string Default ext.
defaultDir string Default dir.
showErrors bool Show error messages.
리턴 string

VerifyWriteFile() 공개 정적인 메소드

Verifies a file for writing setting some defaults if needed.
public static VerifyWriteFile ( string fileName, string defaultExt, string defaultDir, bool createPath ) : string
fileName string File name.
defaultExt string Default ext.
defaultDir string Default dir.
createPath bool If set to true create path.
리턴 string