Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing nginx issue folder detection #409

uggrock576ce10ad372
diff --git a/data/web/web.api.js b/data/web/web.api.js
index eb7c0b03d..a32ca3379 100644
--- a/data/web/web.api.js
+++ b/data/web/web.api.js
@@ -160,7 +160,9 @@ define(function(require, exports, module) {
lmdt = undefined;
//console.log(dirList[entry]._namespaces["DAV:"]);
if (typeof dirList[entry]._namespaces["DAV:"].getcontentlength === 'undefined' ||
- dirList[entry]._namespaces["DAV:"].getcontentlength._xmlvalue.length === 0
+ dirList[entry]._namespaces["DAV:"].getcontentlength._xmlvalue.length === 0 ||
+ (dirList[entry]._namespaces["DAV:"].resourcetype._xmlvalue.length === 1 &&
+ dirList[entry]._namespaces["DAV:"].resourcetype._xmlvalue[0].localName === 'collection')
) {
isDir = true;
} else {