files

Returns a list of files in the specified media directory.

get/api/files/{DirName}

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/files/{DirName}
  • Auth
    none declared

Query parameters

nameOnlyboolean

When 1, return a flat array of filenames instead of the default object envelope

maxdepthinteger

Limit recursion depth (default: unlimited)

Response

Listing of files

object required

Changes