curl --request POST \
--url https://demo.komga.org/api/v1/filesystem \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"showFiles": true
}
'{
"directories": [
{
"name": "<string>",
"path": "<string>",
"type": "<string>"
}
],
"files": [
{
"name": "<string>",
"path": "<string>",
"type": "<string>"
}
],
"parent": "<string>"
}List folders and files from the host server’s file system. If no request body is passed then the root directories are returned.
Required role: ADMIN
curl --request POST \
--url https://demo.komga.org/api/v1/filesystem \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"showFiles": true
}
'{
"directories": [
{
"name": "<string>",
"path": "<string>",
"type": "<string>"
}
],
"files": [
{
"name": "<string>",
"path": "<string>",
"type": "<string>"
}
],
"parent": "<string>"
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.