Commit Graph

10 Commits (6ed48b5ad71b5a1f92821bf46333ef5ad57a166b)

Author SHA1 Message Date
Laurent Defert f93b951bdd Mark stat module as supporting check_mode 11 years ago
James Tanner ad837709bd Addresses #5023 Fix import comments 11 years ago
James Tanner 6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
Mark Mandel 6e3ec9ccc0 expand user home path in stat. 11 years ago
Bruce Pennypacker 0bbbefeb3f doc update 11 years ago
Stephen Fromm 2af6510ded Update stat module to handle symlinks
Add follow parameter to stat module that controls whether to follow
symlinks.  It defaults to no.
This then calls os.stat or os.lstat based on the value of follow.
Add lnk_source key/value pair if path is a symlink and follow=no.
Drop the statement that sets isdir=False and islnk=True when path is a
symlink that points to a directory.
11 years ago
Jan-Piet Mens 9a82d8c692 files/stat: add pw_name and md5 sum to stat, and add meaningful? example
remove unnecessary import,
  md5 sum on regular files only
12 years ago
Bruce Pennypacker c47d121481 don't fail if the file doesn't exist. Just set 'exists' to true/false as appropriate 12 years ago
Bruce Pennypacker 59a045e4cb Fixed stat of symlinked dirs 12 years ago
Bruce Pennypacker 19b8de7ede get file/path facts via 'stat' 12 years ago