Get filesystem path info
/instances/{id}/stat
Returns information about a path in the guest filesystem. Useful for checking if a path exists, its type, and permissions before performing file operations.
Path Parameters
id: string
Query Parameters
path: string
Path to stat in the guest filesystem
follow_links: optional boolean
Follow symbolic links (like stat vs lstat)
Returns
Get filesystem path info
curl http://localhost:8080/instances/$ID/stat \
-H "Authorization: Bearer $HYPEMAN_API_KEY"
{
"exists": true,
"error": "permission denied",
"is_dir": false,
"is_file": true,
"is_symlink": false,
"link_target": "/actual/target/path",
"mode": 420,
"size": 1024
}
Returns Examples
{
"exists": true,
"error": "permission denied",
"is_dir": false,
"is_file": true,
"is_symlink": false,
"link_target": "/actual/target/path",
"mode": 420,
"size": 1024
}