NodeOPCUA API Documentation
    Preparing search index...

    Function checkFileExistsAndIsNotEmpty

    • Checks if a file exists and is strictly greater than 0 bytes. This is useful for guarding against race conditions where a lockfile system touch-creates a file just before writing to it, preventing clients from reading an intermediate 0-byte state.

      Parameters

      • filename: string

      Returns boolean