AnyPS5/core/libs/prx/libkernel/File
Achraf Reyani 3779ffa375 fix(libkernel): accept a trailing slash in sceKernelMkdir
sceKernelMkdir checked that the parent of the resolved path exists, but
for "dir/" std::filesystem::path reports "dir" itself as the parent, so
the call failed with ENOENT and created nothing, while FreeBSD's mkdir
(and the POSIX mkdir export) accept it. Strip trailing separators first,
and report ENOTDIR when the parent exists but is not a directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5f74ddba8b346e6c552cf02554d47382708206f3)
2026-10-10 16:06:21 +00:00
..
include feat(libkernel): open /dev/random and /dev/urandom for reading 2026-10-10 09:12:55 +02:00
src fix(libkernel): accept a trailing slash in sceKernelMkdir 2026-10-10 16:06:21 +00:00