mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-19 23:40:00 +02:00
core services
This commit is contained in:
15
src/core/vfs.coffee
Normal file
15
src/core/vfs.coffee
Normal file
@ -0,0 +1,15 @@
|
||||
self.OS.API.VFS =
|
||||
readdir: (p, c, er) ->
|
||||
h = _API.VFS.pathHandler p
|
||||
h p,
|
||||
(d ) -> c d
|
||||
, (e, s) -> er e, s
|
||||
|
||||
pathHandler: (p) ->
|
||||
list = p.split "///"
|
||||
switch list[0]
|
||||
when "app:"
|
||||
return _API.handler.scanapp
|
||||
else
|
||||
return _API.handler.scandir
|
||||
|
Reference in New Issue
Block a user