DragonMinded / libdragon

Open source library for N64 development.
https://libdragon.dev
The Unlicense
748 stars 108 forks source link

stat() doesn't work on directories #516

Closed rasky closed 7 months ago

rasky commented 7 months ago

Currently, stat() implementation in system.c is to use open() + fstat(): https://github.com/DragonMinded/libdragon/blob/f4c89db76ee956a3c27d39c6b4e650a45a42010f/src/system.c#L1054-L1061

This doesn't allow to stat() directories, for filesystems where that is allowed like FAT used on SD cards.

rasky commented 7 months ago

https://github.com/DragonMinded/libdragon/commit/8dd362b8d858ae60befe9d27bc55cf770b9b50af