Skip to content

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

fixing issue with not recognizing folder on some webdav servers

uggrock3ee13b6abc97
diff --git a/data/web/web.api.js b/data/web/web.api.js
index e1e6cd513..5af8ffc84 100644
--- a/data/web/web.api.js
+++ b/data/web/web.api.js
@@ -49,7 +49,9 @@ define(function(require, exports, module) {
filesize = undefined;
lmdt = undefined;
//console.log(dirList[entry]._namespaces["DAV:"]);
- if (typeof dirList[entry]._namespaces["DAV:"].getcontentlength === 'undefined') {
+ if (typeof dirList[entry]._namespaces["DAV:"].getcontentlength === 'undefined' ||
+ dirList[entry]._namespaces["DAV:"].getcontentlength._xmlvalue.length === 0
+ ) {
isDir = true;
} else {
filesize = dirList[entry]._namespaces["DAV:"].getcontentlength;