Implement fs::error::notempty

This commit is contained in:
Nekotekina 2017-09-12 20:05:38 +03:00
parent 22d8b57027
commit 669d953529
3 changed files with 5 additions and 0 deletions

View file

@ -622,6 +622,7 @@ error_code sys_fs_rmdir(vm::cptr<char> path)
switch (auto error = fs::g_tls_error)
{
case fs::error::noent: return {CELL_ENOENT, path};
case fs::error::notempty: return {CELL_ENOTEMPTY, path};
default: sys_fs.error("sys_fs_rmdir(): unknown error %s", error);
}