文件测试函数

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第三方库


热门话题
JavaGCP:一个VM可以位于具有相同地址的不同网络上吗?   java查找安卓中第一个数组的第二个数组中存在的元素的索引   java摄像头活动不工作,设置参数失败   用于python的Base64转换的Java等效代码   为什么JPA/Hibernate在我尝试运行@Query时抛出“java.lang.NegativeArraySizeException:1”?   如何在ubuntu for java的终端上设置路径?   java为什么这两个IP不同?   java JPA:如何将本机查询结果集转换为POJO类集合   java如何在|(12)|(23)中用数字拆分字符串   异常处理如何让程序在达到Java目标后停止运行   java如何不添加以特定字符开头的元素   java如何通过字符串获得swing按钮名称?   java如何在响应不成功时读取改装中的错误体?   java*更新*现在我的程序可以编译但不运行了?