From 3986faea2153be9747ce3b135b614227281de100 Mon Sep 17 00:00:00 2001 From: zemul Date: Thu, 13 Oct 2022 10:33:55 +0800 Subject: [PATCH] get directory metadata --- Filer-Server-API.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Filer-Server-API.md b/Filer-Server-API.md index 23fe109..fc81ddd 100644 --- a/Filer-Server-API.md +++ b/Filer-Server-API.md @@ -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' {