Commit Graph

7 Commits (e2b38ff41a8ce397a3c281017e91e5c74e996ee7)

Author SHA1 Message Date
Mark Mandel 0f011c3c58 expand user home path in stat. 11 years ago
Bruce Pennypacker bb07c443a4 doc update 11 years ago
Stephen Fromm d43f5d3ab7 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 494d784e91 files/stat: add pw_name and md5 sum to stat, and add meaningful? example
remove unnecessary import,
  md5 sum on regular files only
11 years ago
Bruce Pennypacker 5af9543b75 don't fail if the file doesn't exist. Just set 'exists' to true/false as appropriate 11 years ago
Bruce Pennypacker 88d9145235 Fixed stat of symlinked dirs 11 years ago
Bruce Pennypacker 8f19762748 get file/path facts via 'stat' 11 years ago