Stub for web environments without file access
[heading: "Description"]FallbackFileSystem is a no-op implementation used when no native file system API is available (standard web browsers). Every method returns a rejected Promise so callers receive a consistent error without needing environment checks of their own.
[heading: "Key Features"] [list] * Rejects every operation with a clear error message * Satisfies the same interface as real filesystem implementations * Prevents runtime crashes when file access is unavailable [/list] [heading: "Example Usage (Modding)"] [codeblock javascript] // The fallback is selected automatically when neither NW.js nor Cordova is detected const fs = new FileSystemTools(); // fs.fileSystem will be a FallbackFileSystem instance in a browser try { await fs.getDirectory('Songs/'); } catch (e) { console.warn('File system not supported:', e.message); } [/codeblock] [footer: "© Retora 2026"]