From 7bb3c7b52c4c1c8fe8f569c61fcb3602b3f89d87 Mon Sep 17 00:00:00 2001 From: lxsang Date: Sat, 5 Dec 2020 19:30:15 +0000 Subject: [PATCH] update Docify --- Docify/README.md | 1 + Docify/api/api.lua | 8 +++++--- Docify/build/debug/README.md | 1 + Docify/build/debug/api.lua | 8 +++++--- Docify/build/debug/package.json | 2 +- Docify/build/release/Docify.zip | Bin 28823 -> 28936 bytes Docify/package.json | 2 +- packages.json | 2 +- 8 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Docify/README.md b/Docify/README.md index e88ddbe..303c22b 100644 --- a/Docify/README.md +++ b/Docify/README.md @@ -2,5 +2,6 @@ Simple PDF document manager ## Change logs +- v0.0.5-a: Fix delete file bug - v0.0.4-a: Display file size in entry meta-data - v0.0.3-a: Fix document moved bug, sort entries by year, month, day \ No newline at end of file diff --git a/Docify/api/api.lua b/Docify/api/api.lua index d2aa7f3..4c87db7 100644 --- a/Docify/api/api.lua +++ b/Docify/api/api.lua @@ -312,9 +312,11 @@ handle.updatedoc = function(param) if param.rm then -- move ve the old file to unclassified local newfile = docpath.."/unclassified/"..std.basename(param.rm) - if vfs.exists(param.rm) then - vfs.move(param.rm, newfile) - end + local cmd = "rm -f "..vfs.ospath(param.rm) + os.execute(cmd) + --if vfs.exists(param.rm) then + -- vfs.move(param.rm, newfile) + --end -- move the thumb file if needed local thumb = docpath.."/cache/"..std.sha1(param.rm:gsub(docpath,""))..".png" local newwthumb = docpath.."/cache/"..std.sha1(newfile:gsub(docpath, ""))..".png" diff --git a/Docify/build/debug/README.md b/Docify/build/debug/README.md index e88ddbe..303c22b 100644 --- a/Docify/build/debug/README.md +++ b/Docify/build/debug/README.md @@ -2,5 +2,6 @@ Simple PDF document manager ## Change logs +- v0.0.5-a: Fix delete file bug - v0.0.4-a: Display file size in entry meta-data - v0.0.3-a: Fix document moved bug, sort entries by year, month, day \ No newline at end of file diff --git a/Docify/build/debug/api.lua b/Docify/build/debug/api.lua index d2aa7f3..4c87db7 100644 --- a/Docify/build/debug/api.lua +++ b/Docify/build/debug/api.lua @@ -312,9 +312,11 @@ handle.updatedoc = function(param) if param.rm then -- move ve the old file to unclassified local newfile = docpath.."/unclassified/"..std.basename(param.rm) - if vfs.exists(param.rm) then - vfs.move(param.rm, newfile) - end + local cmd = "rm -f "..vfs.ospath(param.rm) + os.execute(cmd) + --if vfs.exists(param.rm) then + -- vfs.move(param.rm, newfile) + --end -- move the thumb file if needed local thumb = docpath.."/cache/"..std.sha1(param.rm:gsub(docpath,""))..".png" local newwthumb = docpath.."/cache/"..std.sha1(newfile:gsub(docpath, ""))..".png" diff --git a/Docify/build/debug/package.json b/Docify/build/debug/package.json index 4549142..504bd2e 100644 --- a/Docify/build/debug/package.json +++ b/Docify/build/debug/package.json @@ -7,7 +7,7 @@ "author": "", "email": "" }, - "version":"0.0.4-a", + "version":"0.0.5-a", "category":"Other", "iconclass":"fa fa-adn", "mimes":["none"], diff --git a/Docify/build/release/Docify.zip b/Docify/build/release/Docify.zip index f968e4d17cce1e039690317c27dd5316c4347f5e..1d71eec7e3befea0f8e44a836a4f037554fe1995 100644 GIT binary patch delta 381 zcmbRKkg?+tqj-QfGYc032&|pm8u<0ar0Em%7#JpO6jxW7EGf+^QT4qkFLQ-k^#CQV z65!3qB*K93GRR61Mg|5D=7DPgF_uj}moE*pbn@$b8ObLG3=Fx6nR$9y#i%AsRw$5R nN==_^S0D*e8(AQuG$9YFHn|w6n3WA=7#k3J0j*e(58?p;&em>` delta 315 zcmeBp#5nySqj-QfGYc032(Y)c1~OF&f40|SV6fjPuC6kVduCmBs9HyPwGakOpzU{G%c zq6^bC*+KN2JPAgy0dRXJAI#SXLopI)EGNi0aF7CYPmrsli?6F*Zc2bRBa;XN#KAB- zMHm?vK$r)v1;j9&Y+oP^v~+SzfsACa0RuyBVrHIRRxzpxlP4C)FnvjzyuLsZr1n&S cjFNmFRBduGP%$eT$S^h_^a5I8o)6*y0B^8SzyJUM diff --git a/Docify/package.json b/Docify/package.json index 4549142..504bd2e 100644 --- a/Docify/package.json +++ b/Docify/package.json @@ -7,7 +7,7 @@ "author": "", "email": "" }, - "version":"0.0.4-a", + "version":"0.0.5-a", "category":"Other", "iconclass":"fa fa-adn", "mimes":["none"], diff --git a/packages.json b/packages.json index 04fd4f6..cf99dfd 100644 --- a/packages.json +++ b/packages.json @@ -77,7 +77,7 @@ "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/README.md", "category": "Other", "author": "", - "version": "0.0.4-a", + "version": "0.0.5-a", "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/build/release/Docify.zip" }, {