file test functions
Project description
Installation
$ [sudo] pip install filetest
Functions
function | __doc__ |
---|---|
filetest.d(path) |
return True if path exists and is a directory, else False |
filetest.f(path) |
return True if file exists and is a regular file, else False |
filetest.nt(path1, path2) |
return True if path1 is newer than path2, else False |
filetest.ot(path1, path2) |
return True if path1 is older than path2, else False |
filetest.r(path) |
return True if path exists and has read permission (for the current user), else False |
filetest.s(path) |
return True if path exists and is not zero size, else False |
filetest.w(path) |
return True if path exists and has write permission (for the current user), else False |
filetest.x(path) |
return True if path exists and has execute permission (for the current user), else False |
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
filetest-2019.4.13.tar.gz
(1.6 kB
view hashes)