v1

latestOpenAPI 3.1.02026-07-13372867.8 KB
filesystem

Get Path Info

Gets detailed information about a file or directory.

get/api/filesystem/info/{path}

Path parameters

pathstring required

Response

Successfully retrieved path information

namestring required

File or directory name

pathstring required

Full path to the file or directory

typestring required

Type of entry: 'file' or 'directory'

sizeinteger required

Size in bytes

modified_timestring date-time required

Last modification time

is_hiddenboolean required

Whether the file/directory is hidden

extensionstring nullable

File extension if applicable

Example response

{
  "extension": "txt",
  "is_hidden": false,
  "modified_time": "2024-03-10T12:34:56",
  "name": "document.txt",
  "path": "/home/user/documents/document.txt",
  "size": 1024,
  "type": "file"
}