Skip to content

build/api-examples/FileSystem.cpp

Complete program from the FileSystem API reference. Save it at the path shown above and use the build command in the reference page.

Source files · Download FileSystem.cpp

#include "gaspardos.hpp"
#include <cstdio>
#include <cstring>

int main()
{
    GO64_FSInfo info = {};
    return gaspardos::FileSystem::stat(L"\\AHCIDISK0", info) == 0 ? 0 : 1;
}