diff --git a/lib/DAV/handler.js b/lib/DAV/handler.js
index <HASH>..<HASH> 100644
--- a/lib/DAV/handler.js
+++ b/lib/DAV/handler.js
@@ -1721,8 +1721,6 @@ jsDAV_Handler.STATUS_MAP     = {
 
             var nodes = {};
             var nodesPath = [];
-            nodes[path] = parentNode;
-            nodesPath.push(path);
 
             //if (jsDAV.debugMode)
             //    console.log("getPropertiesForPath", depth, parentNode,parentNode.hasFeature(jsDAV_iCollection));
@@ -1738,6 +1736,8 @@ jsDAV_Handler.STATUS_MAP     = {
                 });
             }
             else {
+                nodes[path] = parentNode;
+                nodesPath.push(path);
                 afterGetChildren(nodes, nodesPath);
             }
Fix bug of PROPFIND, when request an empty folder with depth 0, it isn't supposed to be responded with any children