Member Junction
    Preparing search index...

    Interface IFileSystemProvider

    Provider interface for filesystem operations. Enables environment-specific file I/O without requiring eval("require('fs')") or other bundler-unfriendly patterns. Server-side providers (e.g. SQLServerDataProvider) supply a Node.js implementation; browser-side providers return null from IMetadataProvider.FileSystemProvider.

    Follows the same pattern as ILocalStorageProvider — defined in core, implemented per environment.

    interface IFileSystemProvider {
        AppendToFile(filePath: string, content: string): Promise<void>;
        FileExists(filePath: string): Promise<boolean>;
        ReadFile(filePath: string): Promise<string>;
        WriteFile(filePath: string, content: string): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Appends content to a file, creating it if it doesn't exist.

      Parameters

      • filePath: string

        Full path to the file

      • content: string

        Content to append

      Returns Promise<void>

    • Reads content from a file.

      Parameters

      • filePath: string

        Full path to the file

      Returns Promise<string>

      File content or null if file doesn't exist

    • Writes content to a file, overwriting if it exists.

      Parameters

      • filePath: string

        Full path to the file

      • content: string

        Content to write

      Returns Promise<void>