From 820c02bec954fc38576c515af523da0e0dab02a2 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 22 Sep 2014 08:31:39 -0400 Subject: [PATCH] fix(client) goToParentDir: when parent is root --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index e972887e..ae751272 100644 --- a/lib/client.js +++ b/lib/client.js @@ -480,7 +480,7 @@ var Util, DOM, CloudFunc, join; if (path !== parentPath) { path = parentPath; - path = CloudFunc.rmLastSlash(path); + path = CloudFunc.rmLastSlash(path) || '/'; CloudCmd.loadDir({ path: path