Skip to main content

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

python-readme-generator

Project details


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page