Merge pull request #8119 from Bnaya/patch-1

Add resolveLocalFileSystemURL
This commit is contained in:
Masahiro Wakame
2016-02-21 01:42:13 +09:00

View File

@@ -2,7 +2,7 @@
// Project: https://github.com/apache/cordova-plugin-file
// Definitions by: Microsoft Open Technologies, Inc. <http://msopentech.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
//
//
// Copyright (c) Microsoft Open Technologies, Inc.
// Licensed under the MIT license.
@@ -19,6 +19,15 @@ interface Window {
size: number,
successCallback: (fileSystem: FileSystem) => void,
errorCallback?: (fileError: FileError) => void): void;
/**
* Look up file system Entry referred to by local URL.
* @param string url URL referring to a local file or directory
* @param successCallback invoked with Entry object corresponding to URL
* @param errorCallback invoked if error occurs retrieving file system entry
*/
resolveLocalFileSystemURL(url: string,
successCallback: (entry: Entry) => void,
errorCallback?: (error: FileError) => void): void;
/**
* Look up file system Entry referred to by local URI.
* @param string uri URI referring to a local file or directory
@@ -40,7 +49,7 @@ interface FileSystem {
root: DirectoryEntry;
}
/**
/**
* An abstract interface representing entries in a file system,
* each of which may be a File or DirectoryEntry.
*/