mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-26 04:08:21 +01:00
update Docify
This commit is contained in:
parent
dcb7bc7f7b
commit
7bb3c7b52c
@ -2,5 +2,6 @@
|
|||||||
Simple PDF document manager
|
Simple PDF document manager
|
||||||
|
|
||||||
## Change logs
|
## Change logs
|
||||||
|
- v0.0.5-a: Fix delete file bug
|
||||||
- v0.0.4-a: Display file size in entry meta-data
|
- 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
|
- v0.0.3-a: Fix document moved bug, sort entries by year, month, day
|
@ -312,9 +312,11 @@ handle.updatedoc = function(param)
|
|||||||
if param.rm then
|
if param.rm then
|
||||||
-- move ve the old file to unclassified
|
-- move ve the old file to unclassified
|
||||||
local newfile = docpath.."/unclassified/"..std.basename(param.rm)
|
local newfile = docpath.."/unclassified/"..std.basename(param.rm)
|
||||||
if vfs.exists(param.rm) then
|
local cmd = "rm -f "..vfs.ospath(param.rm)
|
||||||
vfs.move(param.rm, newfile)
|
os.execute(cmd)
|
||||||
end
|
--if vfs.exists(param.rm) then
|
||||||
|
-- vfs.move(param.rm, newfile)
|
||||||
|
--end
|
||||||
-- move the thumb file if needed
|
-- move the thumb file if needed
|
||||||
local thumb = docpath.."/cache/"..std.sha1(param.rm:gsub(docpath,""))..".png"
|
local thumb = docpath.."/cache/"..std.sha1(param.rm:gsub(docpath,""))..".png"
|
||||||
local newwthumb = docpath.."/cache/"..std.sha1(newfile:gsub(docpath, ""))..".png"
|
local newwthumb = docpath.."/cache/"..std.sha1(newfile:gsub(docpath, ""))..".png"
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
Simple PDF document manager
|
Simple PDF document manager
|
||||||
|
|
||||||
## Change logs
|
## Change logs
|
||||||
|
- v0.0.5-a: Fix delete file bug
|
||||||
- v0.0.4-a: Display file size in entry meta-data
|
- 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
|
- v0.0.3-a: Fix document moved bug, sort entries by year, month, day
|
@ -312,9 +312,11 @@ handle.updatedoc = function(param)
|
|||||||
if param.rm then
|
if param.rm then
|
||||||
-- move ve the old file to unclassified
|
-- move ve the old file to unclassified
|
||||||
local newfile = docpath.."/unclassified/"..std.basename(param.rm)
|
local newfile = docpath.."/unclassified/"..std.basename(param.rm)
|
||||||
if vfs.exists(param.rm) then
|
local cmd = "rm -f "..vfs.ospath(param.rm)
|
||||||
vfs.move(param.rm, newfile)
|
os.execute(cmd)
|
||||||
end
|
--if vfs.exists(param.rm) then
|
||||||
|
-- vfs.move(param.rm, newfile)
|
||||||
|
--end
|
||||||
-- move the thumb file if needed
|
-- move the thumb file if needed
|
||||||
local thumb = docpath.."/cache/"..std.sha1(param.rm:gsub(docpath,""))..".png"
|
local thumb = docpath.."/cache/"..std.sha1(param.rm:gsub(docpath,""))..".png"
|
||||||
local newwthumb = docpath.."/cache/"..std.sha1(newfile:gsub(docpath, ""))..".png"
|
local newwthumb = docpath.."/cache/"..std.sha1(newfile:gsub(docpath, ""))..".png"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"email": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"version":"0.0.4-a",
|
"version":"0.0.5-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
Binary file not shown.
@ -7,7 +7,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"email": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"version":"0.0.4-a",
|
"version":"0.0.5-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/README.md",
|
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/README.md",
|
||||||
"category": "Other",
|
"category": "Other",
|
||||||
"author": "",
|
"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"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/build/release/Docify.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user