json-fs-query
    Preparing search index...

    Function storagePath

    • Turn a path inside the database (such as users.json or __indexes/users/name.json) into the location the files backend uses: the configured databasePath in front of it, and in a browser also the relativePath (the URL prefix the database is served from).

      Every other part of json-fs-query names files by their path inside the database only; this is the one place that knows where the database is.

      Parameters

      • path: string = ''

        A path inside the database, without a leading slash. Empty for the database folder itself.

      Returns string