refactor(cloudfunc) getDirPath

This commit is contained in:
coderaiser 2013-12-03 09:26:49 +00:00
parent ea077962ca
commit a34c680676

View file

@ -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 !== '');