happy-opfs
    Preparing search index...

    Function isTempPath

    • Checks whether the path is a temporary path (under /tmp).

      Parameters

      • path: string

        The path to check.

      Returns boolean

      true if the path starts with /tmp/, otherwise false.

      1.7.2

      isTempPath('/tmp/file.txt');  // true
      isTempPath('/data/file.txt'); // false