文件测试函数

filetest的Python项目详细描述


安装
$ [sudo] pip install filetest

函数

function^{}
^{}return True if path exists and is a directory, else False
^{}return True if file exists and is a regular file, else False
^{}return True if path1 is newer than path2, else False
^{}return True if path1 is older than path2, else False
^{}return True if path exists and has read permission (for the current user), else False
^{}return True if path exists and is not zero size, else False
^{}return True if path exists and has write permission (for the current user), else False
^{}return True if path exists and has execute permission (for the current user), else False

链接

python-readme-generator

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Jetty是否有请求缓存?   数组中的java 2值与我的数据帧中的2列对应   对象序列化期间的java DbUtils类型转换问题   java根面板中不显示所有单独的面板   java通过代理或SSH隧道连接Hbase API   java困惑:与经典MVC控制器相比,JSF2中bean的角色   java在我的Triangle类中“找不到符号错误”   java在Android中设置从路径到自定义按钮的图像   java不绕轨道旋转椭圆   AES在socket上搞砸了序列化/反序列化。无效的流标头。JAVA   java在数组中搜索term和if语句   线程“main”java中出现异常。util。正则表达式。PatternSyntaxException:在索引0附近悬挂元字符“*”*   Websphere上的java Google反射无法打开url连接   java为什么inc/dec频道什么都不做?   java KeyListener无法访问keyPressed方法