diff --git a/lib/server/webDAVServer/Resource.js b/lib/server/webDAVServer/Resource.js index 0bb03539..c86dbbfc 100644 --- a/lib/server/webDAVServer/Resource.js +++ b/lib/server/webDAVServer/Resource.js @@ -92,7 +92,7 @@ function addResourceTree(_rootResource, _resoureceTree, _callback) { }; array.forEach(function (r) { return _this.addResourceTree(rootResource, r, doneArray_1); }); } - else if (resoureceTree.fsManager) { + else if (resoureceTree.fsManager !== undefined) { rootResource.addChild(resoureceTree, callback); } else { diff --git a/src/server/webDAVServer/Resource.ts b/src/server/webDAVServer/Resource.ts index 00a85e65..29643fe6 100644 --- a/src/server/webDAVServer/Resource.ts +++ b/src/server/webDAVServer/Resource.ts @@ -118,7 +118,7 @@ export function addResourceTree(_rootResource : IResource | ResourceTreeNode, _r array.forEach((r) => this.addResourceTree(rootResource, r, doneArray)); } - else if((resoureceTree as IResource).fsManager) + else if((resoureceTree as IResource).fsManager !== undefined) { // resoureceTree is IResource rootResource.addChild(resoureceTree as IResource, callback); }