Skip to content

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

Allowing deletion operation in chrome only files

Ilian9f8a5c1ea860
diff --git a/data/js/ioapi.chrome.js b/data/js/ioapi.chrome.js
index c6740ef16..56e01746d 100644
--- a/data/js/ioapi.chrome.js
+++ b/data/js/ioapi.chrome.js
@@ -199,7 +199,9 @@ IO-API
var deleteElement = function(path) {
console.log("Deleting: "+path);
try {
- nativeIO.removeRecursively(path);
+ if(!nativeIO.isDirectory(path)) {
+ nativeIO.removeRecursively(path);
+ }
TSPOSTIO.deleteElement();
} catch(ex) {
console.error("Deleting file failed "+ex);