diff --git a/src/plugins/file.ts b/src/plugins/file.ts index 794e2d8ad..612332cab 100644 --- a/src/plugins/file.ts +++ b/src/plugins/file.ts @@ -381,6 +381,10 @@ export class File { 14: 'DIR_READ_ERR', }; + /** + * Get free disk space + * @returns {Promise { return; @@ -393,7 +397,6 @@ export class File { * @param {string} dir Name of directory to check * @return {Promise} Returns a Promise that resolves to true if the directory exists or rejects with an error. */ - static checkDir(path: string, dir: string): Promise { if ((/^\//.test(dir))) { let err = new FileError(5); @@ -418,7 +421,6 @@ export class File { * @param {boolean} replace If true, replaces file with same name. If false returns error * @return {Promise} Returns a Promise that resolves with a DirectoryEntry or rejects with an error. */ - static createDir(path: string, dirName: string, replace: boolean): Promise { if ((/^\//.test(dirName))) { let err = new FileError(5); @@ -447,7 +449,6 @@ export class File { * @param {string} dirName The directory name * @return {Promise} Returns a Promise that resolves to a RemoveResult or rejects with an error. */ - static removeDir(path: string, dirName: string): Promise { if ((/^\//.test(dirName))) { let err = new FileError(5); @@ -473,7 +474,6 @@ export class File { * @param {string} newDirName The destination directory name * @return {Promise} Returns a Promise that resolves to the new DirectoryEntry object or rejects with an error. */ - static moveDir(path: string, dirName: string, newPath: string, newDirName: string): Promise { newDirName = newDirName || dirName; @@ -530,7 +530,6 @@ export class File { * @param {string} dirName Name of directory * @return {Promise} Returns a Promise that resolves to an array of Entry objects or rejects with an error. */ - static listDir(path: string, dirName: string): Promise { if ((/^\//.test(dirName))) { let err = new FileError(5); @@ -555,7 +554,6 @@ export class File { * @param {string} dirName Name of directory * @return {Promise} Returns a Promise that resolves with a RemoveResult or rejects with an error. */ - static removeRecursively(path: string, dirName: string): Promise { if ((/^\//.test(dirName))) { let err = new FileError(5); @@ -579,7 +577,6 @@ export class File { * @param {string} file Name of file to check * @return {Promise} Returns a Promise that resolves with a boolean or rejects with an error. */ - static checkFile(path: string, file: string): Promise { if ((/^\//.test(file))) { let err = new FileError(5); @@ -637,7 +634,6 @@ export class File { * @param {string} fileName Name of file to remove * @return {Promise} Returns a Promise that resolves to a RemoveResult or rejects with an error. */ - static removeFile(path: string, fileName: string): Promise { if ((/^\//.test(fileName))) { let err = new FileError(5);