From 542ff4cf952ada154541e1c2dc81ac2485d931fe Mon Sep 17 00:00:00 2001 From: Ibby Date: Tue, 11 Oct 2016 20:16:39 -0400 Subject: [PATCH] feat(file): resolveLocalFilesystemUrl and resolveDirectoryUrl are now public methods closes #657 --- src/plugins/file.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/plugins/file.ts b/src/plugins/file.ts index e352c5bb5e..588bc89fab 100644 --- a/src/plugins/file.ts +++ b/src/plugins/file.ts @@ -958,9 +958,11 @@ export class File { } /** - * @private + * Resolves a local file system URL + * @param furl {string} file system url + * @returns {Promise} */ - private static resolveLocalFilesystemUrl(furl: string): Promise { + static resolveLocalFilesystemUrl(furl: string): Promise { return new Promise((resolve, reject) => { try { window.resolveLocalFileSystemURL(furl, (entry) => { @@ -977,9 +979,11 @@ export class File { } /** - * @private + * Resolves a local directory url + * @param durl {string} directory system url + * @returns {Promise} */ - private static resolveDirectoryUrl(durl: string): Promise { + static resolveDirectoryUrl(durl: string): Promise { return File.resolveLocalFilesystemUrl(durl) .then((de) => { if (de.isDirectory) {