Struct staticdir::AsJson
[−]
[src]
pub struct AsJson;
Provides list of directory contents in JSON format like
[
{
"file_type": "File", // "File", "Dir" or "Symlink"
"file_name": ".gitignore",
"size": 7,
"creation_time": null, // may be null on some Unix systems
"last_modification_time": 1451939290,
"last_access_time": 1451939309
},
{
"file_type": "File",
"file_name": "Cargo.toml",
"size": 196,
"creation_time": null,
"last_modification_time": 1451939547,
"last_access_time": 1451939547
},
{
"file_type": "Dir",
"file_name": "src",
"size": 4096,
"creation_time": null,
"last_modification_time": 1451939462,
"last_access_time": 1451939462
}
]
Current and parent directories (. and ..) are not included.
Trait Implementations
impl ResponseStrategy for AsJson
If failed to read metadata of a directory entry, such entry will not cause panic and will not be returned in resulting JSON