An endpoint that returns metadata of the specified file.
- Verb:
GET
- Path:
/file/meta
Query parameters:
| Name |
Value |
Default value |
Description |
path |
string |
required |
A path to a file. |
Responses:
200 OK - when the file exists.
404 Not Found - when couldn't find the file or if the path is pointing to a directory.
400 Bad Request - when the path is invalid.
Returns files metadata in a JSON format:
{
"name": "myFile.txt",
"extension": "txt",
"size": 1300,
"path": "/dir1/myFile.txt",
"created": "2019-01-01T00:00:00Z",
"modified": "2019-01-01T00:00:00Z"
}
name - The name of the file. Includes file extension.
extension - Just the file extension withouth .. In case there is no extension, returns empty string.
size - Size in bytes (like in /file/size endpoint)
path - The path to the file (the same as the one specified by user)
created - Date and time of file creation
modified - Date and time of last modification
An endpoint that returns metadata of the specified file.
GET/file/metaQuery parameters:
pathResponses:
200 OK- when the file exists.404 Not Found- when couldn't find the file or if the path is pointing to a directory.400 Bad Request- when the path is invalid.Returns files metadata in a JSON format:
{ "name": "myFile.txt", "extension": "txt", "size": 1300, "path": "/dir1/myFile.txt", "created": "2019-01-01T00:00:00Z", "modified": "2019-01-01T00:00:00Z" }name- The name of the file. Includes file extension.extension- Just the file extension withouth.. In case there is no extension, returns empty string.size- Size in bytes (like in/file/sizeendpoint)path- The path to the file (the same as the one specified by user)created- Date and time of file creationmodified- Date and time of last modification