fix: Zero op new dir dies. (#2122)

This commit is contained in:
J M
2023-01-17 09:53:42 -07:00
committed by Aiden McClelland
parent b42abbd4a2
commit 212e94756b
3 changed files with 69 additions and 4 deletions

View File

@@ -888,6 +888,28 @@ export const action = {
},
};
},
/**
* Created this test because of issue
* https://github.com/Start9Labs/embassy-os/issues/2121
* That the empty in the create dies
* @param {*} effects
* @param {*} _input
* @returns
*/
async "test-zero-dir"(effects, _input) {
await effects.createDir({
volumeId: "main",
path: "./",
});
return {
result: {
copyable: false,
message: "Done",
version: "0",
qr: false,
},
};
},
/**
* Found case where we could escape with the new deeper dir fix.
* @param {*} effects