vfs (contd.)

This commit is contained in:
Xuan Sang LE
2018-01-24 15:03:33 +01:00
parent dfbeb16601
commit 7bd53154ad
6 changed files with 70 additions and 47 deletions

View File

@ -3,6 +3,10 @@ self.OS.API.handler =
path = "lua-api/fs/scandir"
_API.post path, { path: p }, c, (e, s) ->
_courrier.osfail "Fail to scan directory: #{p}", e, s
mkdir: (p, c ) ->
path = "lua-api/fs/mkdir"
_API.post path, { path: p }, c, (e, s) ->
_courrier.osfail "Fail to create directory: #{p}", e, s
fileinfo: (p, c) ->
path = "lua-api/fs/fileinfo"