mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
sceKernelUnlink takes its Windows directory-link path only when std::filesystem::symlink_status reports a directory, but MinGW's symlink_status follows the link. A directory symbolic link whose target is missing therefore looked like a file, went to the file delete, and failed with EACCES, because Windows removes a directory link only through RemoveDirectoryW. guest_filesystem stops there on any Windows host that may create symbolic links. The directory path is now also taken when the link itself carries both FILE_ATTRIBUTE_DIRECTORY and FILE_ATTRIBUTE_REPARSE_POINT, which GetFileAttributesW reports without following the link. Co-Authored-By: Claude Opus 5.5 <[email protected]>