C# Класс WPCordovaClassLib.Cordova.Commands.File

Provides access to isolated storage
Наследование: BaseCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
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