name |
description |
returned |
type |
sample |
isuid |
Tells you if the invoking user's id matches the owner's id
|
success, path exists and user can read stats |
boolean |
False |
uid |
Numeric id representing the file owner
|
success, path exists and user can read stats |
int |
1003 |
exists |
if the destination path actually exists or not
|
success |
boolean |
True |
lnk_target |
Target of the symlink. Note that relative paths remain relative
|
success, path exists and user can read stats and the path is a symbolic link |
string |
../foobar/21102015-1445431274-908472971 |
woth |
Tells you if others have write permission
|
success, path exists and user can read stats |
boolean |
False |
mtime |
Time of last modification
|
success, path exists and user can read stats |
float |
1424348972.58 |
inode |
Inode number of the path
|
success, path exists and user can read stats |
int |
12758 |
isgid |
Tells you if the invoking user's group id matches the owner's group id
|
success, path exists and user can read stats |
boolean |
False |
size |
Size in bytes for a plain file, amount of data for some special files
|
success, path exists and user can read stats |
int |
203 |
wgrp |
Tells you if the owner's group has write permission
|
success, path exists and user can read stats |
boolean |
False |
executable |
Tells you if the invoking user has the execute the path
|
success, path exists and user can execute the path |
boolean |
False |
charset |
file character set or encoding
|
success, path exists and user can read stats and installed python supports it and the `mime` option was true, will return 'unknown' on error. |
string |
us-ascii |
readable |
Tells you if the invoking user has the right to read the path
|
success, path exists and user can read the path |
boolean |
False |
isreg |
Tells you if the path is a regular file
|
success, path exists and user can read stats |
boolean |
True |
pw_name |
User name of owner
|
success, path exists and user can read stats and installed python supports it |
string |
httpd |
gid |
Numeric id representing the group of the owner
|
success, path exists and user can read stats |
int |
1003 |
ischr |
Tells you if the path is a character device
|
success, path exists and user can read stats |
boolean |
False |
mime_type |
file magic data or mime-type
|
success, path exists and user can read stats and installed python supports it and the `mime` option was true, will return 'unknown' on error. |
string |
PDF document, version 1.2 |
wusr |
Tells you if the owner has write permission
|
success, path exists and user can read stats |
boolean |
True |
writeable |
Tells you if the invoking user has the right to write the path
|
success, path exists and user can write the path |
boolean |
False |
xoth |
Tells you if others have execute permission
|
success, path exists and user can read stats |
boolean |
True |
rusr |
Tells you if the owner has read permission
|
success, path exists and user can read stats |
boolean |
True |
nlink |
Number of links to the inode (hard links)
|
success, path exists and user can read stats |
int |
1 |
issock |
Tells you if the path is a unix domain socket
|
success, path exists and user can read stats |
boolean |
False |
rgrp |
Tells you if the owner's group has read permission
|
success, path exists and user can read stats |
boolean |
True |
gr_name |
Group name of owner
|
success, path exists and user can read stats and installed python supports it |
string |
www-data |
path |
The full path of the file/object to get the facts of
|
success and if path exists |
string |
/path/to/file |
xusr |
Tells you if the owner has execute permission
|
success, path exists and user can read stats |
boolean |
True |
atime |
Time of last access
|
success, path exists and user can read stats |
float |
1424348972.58 |
lnk_source |
Target of the symlink normalized for the remote filesystem
|
success, path exists and user can read stats and the path is a symbolic link |
string |
/home/foobar/21102015-1445431274-908472971 |
md5 |
md5 hash of the path
|
success, path exists and user can read stats and path supports hashing and md5 is supported |
string |
f88fa92d8cf2eeecf4c0a50ccc96d0c0 |
isdir |
Tells you if the path is a directory
|
success, path exists and user can read stats |
boolean |
False |
ctime |
Time of last metadata update or creation (depends on OS)
|
success, path exists and user can read stats |
float |
1424348972.58 |
isblk |
Tells you if the path is a block device
|
success, path exists and user can read stats |
boolean |
False |
xgrp |
Tells you if the owner's group has execute permission
|
success, path exists and user can read stats |
boolean |
True |
dev |
Device the inode resides on
|
success, path exists and user can read stats |
int |
33 |
roth |
Tells you if others have read permission
|
success, path exists and user can read stats |
boolean |
True |
isfifo |
Tells you if the path is a named pipe
|
success, path exists and user can read stats |
boolean |
False |
mode |
Unix permissions of the file in octal
|
success, path exists and user can read stats |
octal |
1755 |
checksum |
hash of the path
|
success, path exists, user can read stats, path supports hashing and supplied checksum algorithm is available |
string |
50ba294cdf28c0d5bcde25708df53346825a429f |
islnk |
Tells you if the path is a symbolic link
|
success, path exists and user can read stats |
boolean |
False |
attributes |
list of file attributes
|
success, path exists and user can execute the path |
list |
['immutable', 'extent'] |