sys_fs_mkdir: implement ENOENT

This commit is contained in:
Nekotekina 2017-09-18 23:04:11 +03:00
parent 3901f08fa0
commit a428dac71c
1 changed files with 1 additions and 0 deletions

View File

@ -582,6 +582,7 @@ error_code sys_fs_mkdir(vm::cptr<char> path, s32 mode)
{
switch (auto error = fs::g_tls_error)
{
case fs::error::noent: return {CELL_ENOENT, path};
case fs::error::exist: return {CELL_EEXIST, path};
default: sys_fs.error("sys_fs_mkdir(): unknown error %s", error);
}