diff --git a/src/plugins/file.ts b/src/plugins/file.ts index 3bea03c61..051ca2ba9 100644 --- a/src/plugins/file.ts +++ b/src/plugins/file.ts @@ -470,10 +470,10 @@ export class File { * @param {string} dirName The source directory name * @param {string} newPath The destionation path to the directory * @param {string} newDirName The destination directory name - * @return {Promise} Returns a Promise that resolves to the new DirectoryEntry object or rejects with an error. + * @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 { + static moveDir(path: string, dirName: string, newPath: string, newDirName: string): Promise { newDirName = newDirName || dirName; if ((/^\//.test(newDirName))) {