tarlatan
    Preparing search index...

    Function preparedStoreDirectories

    • Makes sure every store directory in paths exists, judging them all before it creates any (owner finding F7, dogfood-2). Each path is resolved, read and judged in order. Only when every one passed is each missing one created, in the same order, mode 0700. A directory whose parent is an earlier one still to be created passes the judgment. An existing directory is used unchanged. Fails with LayoutRefused when a path cannot be resolved, with StoreDirectoryParentMissing when a parent is missing too, and with StoreDirectoryRefused for a non-directory, an unreadable path, a mode that could not be set or a creation that left no directory. A refused judgment creates nothing.

      Parameters

      • paths: readonly string[]

      Returns Effect<
          void,
          LayoutRefused
          | StoreDirectoryParentMissing
          | StoreDirectoryRefused,
          never,
      >