| name |
description |
returned |
type |
sample |
| exists |
if the path exists or not
|
success |
boolean |
True |
| lastwritetime |
the last modification time of the file represented in seconds since epoch
|
success, path exists |
float |
1477984205.15 |
| creationtime |
the create time of the file represented in seconds since epoch
|
success, path exists |
float |
1477984205.15 |
| isshared |
if the path is shared or not
|
success, path exists |
boolean |
True |
| lastaccesstime |
the last access time of the file represented in seconds since epoch
|
success, path exists |
float |
1477984205.15 |
| owner |
the owner of the file
|
success, path exists |
string |
BUILTIN\Administrators |
| path |
the full absolute path to the file
|
success, path exists, file exists |
string |
C:\foo.ini |
| isarchive |
if the path is ready for archiving or not
|
success, path exists |
boolean |
True |
| ishidden |
if the path is hidden or not
|
success, path exists |
boolean |
True |
| lnk_source |
the target of the symbolic link, will return null if not a link or the link is broken
|
|
string |
C:\temp |
| size |
the size in bytes of a file or folder
|
success, path exists, file is not a link |
int |
1024 |
| isdir |
if the path is a directory or not
|
success, path exists |
boolean |
True |
| extension |
the extension of the file at path
|
success, path exists, path is a file |
string |
.ps1 |
| isreadonly |
if the path is read only or not
|
success, path exists |
boolean |
True |
| sharename |
the name of share if folder is shared
|
success, path exists, file is a directory and isshared == True |
string |
file-share |
| filename |
the name of the file (without path)
|
success, path exists, path is a file |
string |
|
| isreg |
if the path is a regular file
|
success, path exists |
boolean |
True |
| checksum |
The checksum of a file based on checksum_algorithm specified
|
success, path exist, path is a file, get_checksum == True checksum_algorithm specified is supported |
string |
09cb79e8fc7453c84a07f644e441fd81623b7f98 |
| islnk |
if the path is a symbolic link or junction or not
|
success, path exists |
boolean |
True |
| attributes |
attributes of the file at path in raw form
|
success, path exists |
string |
Archive, Hidden |
| md5 |
The MD5 checksum of a file (Between Ansible 1.9 and 2.2 this was returned as a SHA1 hash)
|
success, path exist, path is a file, get_md5 == True, md5 is supported |
string |
09cb79e8fc7453c84a07f644e441fd81623b7f98 |