C# Class WPCordovaClassLib.Cordova.Commands.File

Provides access to isolated storage
Inheritance: BaseCommand
Afficher le fichier Open project: ChristianWeyer/tUdUs

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

IsDirectoryOrFileExist() public méthode

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
Résultat void

copyTo() public méthode

public copyTo ( string options ) : void
options string
Résultat void

getDirectory() public méthode

public getDirectory ( string options ) : void
options string
Résultat void

getFile() public méthode

public getFile ( string options ) : void
options string
Résultat void

getFileMetadata() public méthode

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

getFreeDiskSpace() public méthode

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

getMetadata() public méthode

Look up metadata about this entry.
public getMetadata ( string options ) : void
options string filePath to entry
Résultat void

getParent() public méthode

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
Résultat void

moveTo() public méthode

public moveTo ( string options ) : void
options string
Résultat void

readAsDataURL() public méthode

public readAsDataURL ( string options ) : void
options string
Résultat void

readAsText() public méthode

public readAsText ( string options ) : void
options string
Résultat void

readEntries() public méthode

public readEntries ( string options ) : void
options string
Résultat void

readResourceAsText() public méthode

Reads application resource as a text
public readResourceAsText ( string options ) : void
options string Path to a resource
Résultat void

remove() public méthode

public remove ( string options ) : void
options string
Résultat void

removeRecursively() public méthode

public removeRecursively ( string options ) : void
options string
Résultat void

requestFileSystem() public méthode

public requestFileSystem ( string options ) : void
options string
Résultat void

resolveLocalFileSystemURI() public méthode

public resolveLocalFileSystemURI ( string options ) : void
options string
Résultat void

testDirectoryExists() public méthode

Check if directory exists
public testDirectoryExists ( string options ) : void
options string directory name
Résultat void

testFileExists() public méthode

Check if file exists
public testFileExists ( string options ) : void
options string File path
Résultat void

truncate() public méthode

public truncate ( string options ) : void
options string
Résultat void

write() public méthode

public write ( string options ) : void
options string
Résultat void