Fix CE ls on non-directory filesystem paths
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m48s

This commit is contained in:
2026-03-01 00:35:14 +01:00
parent a3b98fcaa2
commit eb55a6de21
3 changed files with 9 additions and 1 deletions

View File

@@ -298,7 +298,9 @@ static void ls (const char* path_string) {
describe (path, &desc);
if (desc.type != FS_DIR) {
printf ("ERROR '%s' is not a directory\n", path_string);
volume_close ();
return;
}
size_t entries = desc.size;