C# 클래스 WPCordovaClassLib.Cordova.Commands.File

Provides access to isolated storage
상속: BaseCommand
파일 보기 프로젝트 열기: ChristianWeyer/tUdUs

공개 메소드들

메소드 설명
IsDirectoryOrFileExist ( string options, bool isDirectory ) : void

Check if file or directory exist

copyTo ( string options ) : void
getDirectory ( string options ) : void
getFile ( string options ) : void
getFileMetadata ( string options ) : void

Returns a File that represents the current state of the file that this FileEntry represents.

getFreeDiskSpace ( string options ) : void

Gets amount of free space available for Isolated Storage

getMetadata ( string options ) : void

Look up metadata about this entry.

getParent ( string options ) : void

Look up the parent DirectoryEntry containing this Entry. If this Entry is the root of IsolatedStorage, its parent is itself.

moveTo ( string options ) : void
readAsDataURL ( string options ) : void
readAsText ( string options ) : void
readEntries ( string options ) : void
readResourceAsText ( string options ) : void

Reads application resource as a text

remove ( string options ) : void
removeRecursively ( string options ) : void
requestFileSystem ( string options ) : void
resolveLocalFileSystemURI ( string options ) : void
testDirectoryExists ( string options ) : void

Check if directory exists

testFileExists ( string options ) : void

Check if file exists

truncate ( string options ) : void
write ( string options ) : void

비공개 메소드들

메소드 설명
AddSlashToDirectory ( string dirPath ) : string
CanonicalCompare ( string pathA, string pathB ) : bool
CopyDirectory ( string sourceDir, string destDir, IsolatedStorageFile isoFile ) : void
GetFileContent ( Stream stream ) : string

Returns file content in a form of base64 string

GetFileOrDirectory ( string options, bool getDirectory ) : void
GetParentDirectory ( string path ) : string

Retrieves the parent directory name of the specified path,

HandleException ( Exception ex ) : bool
LoadFileOptions ( string options ) : bool
TransferTo ( string options, bool move ) : void
getSingleStringOption ( string options ) : string
removeDirRecursively ( string fullPath ) : void

메소드 상세

IsDirectoryOrFileExist() 공개 메소드

Check if file or directory exist
public IsDirectoryOrFileExist ( string options, bool isDirectory ) : void
options string File path/Directory name
isDirectory bool Flag to recognize what we should check
리턴 void

copyTo() 공개 메소드

public copyTo ( string options ) : void
options string
리턴 void

getDirectory() 공개 메소드

public getDirectory ( string options ) : void
options string
리턴 void

getFile() 공개 메소드

public getFile ( string options ) : void
options string
리턴 void

getFileMetadata() 공개 메소드

Returns a File that represents the current state of the file that this FileEntry represents.
public getFileMetadata ( string options ) : void
options string
리턴 void

getFreeDiskSpace() 공개 메소드

Gets amount of free space available for Isolated Storage
public getFreeDiskSpace ( string options ) : void
options string No options is needed for this method
리턴 void

getMetadata() 공개 메소드

Look up metadata about this entry.
public getMetadata ( string options ) : void
options string filePath to entry
리턴 void

getParent() 공개 메소드

Look up the parent DirectoryEntry containing this Entry. If this Entry is the root of IsolatedStorage, its parent is itself.
public getParent ( string options ) : void
options string
리턴 void

moveTo() 공개 메소드

public moveTo ( string options ) : void
options string
리턴 void

readAsDataURL() 공개 메소드

public readAsDataURL ( string options ) : void
options string
리턴 void

readAsText() 공개 메소드

public readAsText ( string options ) : void
options string
리턴 void

readEntries() 공개 메소드

public readEntries ( string options ) : void
options string
리턴 void

readResourceAsText() 공개 메소드

Reads application resource as a text
public readResourceAsText ( string options ) : void
options string Path to a resource
리턴 void

remove() 공개 메소드

public remove ( string options ) : void
options string
리턴 void

removeRecursively() 공개 메소드

public removeRecursively ( string options ) : void
options string
리턴 void

requestFileSystem() 공개 메소드

public requestFileSystem ( string options ) : void
options string
리턴 void

resolveLocalFileSystemURI() 공개 메소드

public resolveLocalFileSystemURI ( string options ) : void
options string
리턴 void

testDirectoryExists() 공개 메소드

Check if directory exists
public testDirectoryExists ( string options ) : void
options string directory name
리턴 void

testFileExists() 공개 메소드

Check if file exists
public testFileExists ( string options ) : void
options string File path
리턴 void

truncate() 공개 메소드

public truncate ( string options ) : void
options string
리턴 void

write() 공개 메소드

public write ( string options ) : void
options string
리턴 void