This function returns the information for a specified file or directory.
Important:
When you disable the File Storage role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Fileman \ get_file_information \ path='public_html'
{- "apiversion": 3,
- "func": "get_file_information",
- "module": "Fileman",
- "result": {
- "data": {
- "absdir": "/home/user",
- "ctime": 1400573272,
- "exists": 1,
- "file": "cgi-bin",
- "fullpath": "/home/user/public_html/cgi-bin",
- "gid": 503,
- "hash": "L2hvbWUvY29saW4vcHVibGljX2h0bWw",
- "humansize": "5 KB",
- "isleaf": 1,
- "mimename": "publichtml",
- "mimetype": "text/plain",
- "mode": "16872",
- "mtime": 1400573272,
- "nicemode": 755,
- "path": "/home/user/public.html",
- "phash": "L2hvbWUvY29saW4vcHVibGljX2h0bWw",
- "rawmimename": "text/plain",
- "rawmimetype": "text/plain",
- "read": 1,
- "size": 4096,
- "type": "file",
- "uid": 502,
- "write": 1
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}