add Files package features

This commit is contained in:
Xuan Sang LE
2018-01-25 00:49:02 +01:00
parent 7e62d71913
commit d998ac4b66
5 changed files with 67 additions and 9 deletions

View File

@ -18,6 +18,11 @@ self.OS.API.handler =
_API.get path + p, c, (e, s) ->
_courrier.osfail "Fail to read file: #{p}",e , s
write: (p, d , c) ->
path = "lua-api/fs/write"
_API.post path, { path: p, data: d }, c, (e, s) ->
_courrier.osfail "Fail to write to file: #{p}", e, s
scanapp: (p, c ) ->
path = "lua-api/system/application"
auth: (c) ->