mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
feat: Add in the read dir. (#2141)
* feat: Add in the read dir. Have a test that proves that this is working. * chore: Let the read dir work while in a read only mode * revert: To old sync
This commit is contained in:
@@ -114,6 +114,10 @@ const readJsonFile = async (
|
||||
const createDir = (
|
||||
{ volumeId = requireParam("volumeId"), path = requireParam("path") } = requireParam("options"),
|
||||
) => Deno.core.opAsync("create_dir", volumeId, path);
|
||||
|
||||
const readDir = (
|
||||
{ volumeId = requireParam("volumeId"), path = requireParam("path") } = requireParam("options"),
|
||||
) => Deno.core.opAsync("read_dir", volumeId, path);
|
||||
const removeDir = (
|
||||
{ volumeId = requireParam("volumeId"), path = requireParam("path") } = requireParam("options"),
|
||||
) => Deno.core.opAsync("remove_dir", volumeId, path);
|
||||
@@ -186,7 +190,8 @@ const effects = {
|
||||
sleep,
|
||||
runDaemon,
|
||||
signalGroup,
|
||||
runRsync
|
||||
runRsync,
|
||||
readDir
|
||||
};
|
||||
|
||||
const defaults = {
|
||||
|
||||
Reference in New Issue
Block a user