mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(cloudfunc) getDirPath
This commit is contained in:
parent
ea077962ca
commit
a34c680676
1 changed files with 2 additions and 2 deletions
|
|
@ -275,10 +275,10 @@ var Util;
|
|||
this._getDirPath = function(url) {
|
||||
var lShortName,
|
||||
folders = [],
|
||||
i = 0;
|
||||
i;
|
||||
|
||||
do {
|
||||
folders[i++] = url;
|
||||
folders.push(url);
|
||||
url = url.substr(url, url.lastIndexOf('/'));
|
||||
} while(url !== '');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue