mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
get directory metadata
parent
ab098f323b
commit
3986faea21
|
@ -43,7 +43,7 @@ You can append to any HTTP API with &pretty=y to see a formatted json output.
|
|||
|
||||
| GET Parameter | Description | Default |
|
||||
| ---- | -- | -- |
|
||||
| metadata | get file metadata | false |
|
||||
| metadata | get file/directory metadata | false |
|
||||
| resolveManifest | resolve manifest chunks | false |
|
||||
### notice
|
||||
* It is recommended to add retries when writing to Filer.
|
||||
|
@ -123,6 +123,33 @@ Examples:
|
|||
"LastFileName": "jquery-sparklines",
|
||||
"ShouldDisplayLoadMore": false
|
||||
}
|
||||
|
||||
# get directory metadata
|
||||
> curl 'http://localhost:8888/javascript/?metadata=true&pretty=yes'
|
||||
{
|
||||
"FullPath": "/javascript",
|
||||
"Mtime": "2022-03-17T11:34:51+08:00",
|
||||
"Crtime": "2022-03-17T11:34:51+08:00",
|
||||
"Mode": 2147484141,
|
||||
"Uid": 1001,
|
||||
"Gid": 1001,
|
||||
"Mime": "",
|
||||
"TtlSec": 0,
|
||||
"UserName": "",
|
||||
"GroupNames": null,
|
||||
"SymlinkTarget": "",
|
||||
"Md5": null,
|
||||
"FileSize": 0,
|
||||
"Rdev": 0,
|
||||
"Inode": 0,
|
||||
"Extended": null,
|
||||
"HardLinkId": null,
|
||||
"HardLinkCounter": 0,
|
||||
"Content": null,
|
||||
"Remote": null,
|
||||
"Quota": 0
|
||||
}
|
||||
|
||||
# get file metadata
|
||||
> curl 'http://localhost:8888/test01.py?metadata=true&pretty=yes'
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue