File Test Operators

本文详细介绍了文件测试运算符的功能及使用方法,包括读写权限、文件类型等20多种测试条件,帮助读者掌握如何利用这些运算符进行高效的文件操作。

A file test operator is a unary operator that tests a filename or a filehandle.

OperatorMeaning
-rFile is readable by effective uid/gid.
-wFile is writable by effective uid/gid.
-xFile is executable by effective uid/gid.
-oFile is owned by effective uid.
-RFile is readable by real uid/gid.
-WFile is writable by real uid/gid.
-XFile is executable by real uid/gid.
-OFile is owned by real uid.
-eFile exists.
-zFile has zero size.
-sFile has non-zero size (returns size).
-fFile is a plain file.
-dFile is a directory.
-lFile is a symbolic link.
-pFile is a named pipe (FIFO).
-SFile is a socket.
-bFile is a block special file.
-cFile is a character special file.
-tFilehandle is opened to a tty.
-uFile has setuid bit set.
-gFile has setgid bit set.
-kFile has sticky bit set.
-TFile is a text file.
-BFile is a binary file (opposite of -T).
-MAge of file (at startup) in days since modification.
-AAge of file (at startup) in days since last access.
-CAge of file (at startup) in days since inode change.
F:\PaddleDetection-release-2.5>python ppdet/modeling/tests/test_architectures.py Warning: Unable to use numba in PP-Tracking, please install numba, for example(python3.7): `pip install numba==0.56.4` Warning: Unable to use numba in PP-Tracking, please install numba, for example(python3.7): `pip install numba==0.56.4` Traceback (most recent call last): File "F:\PaddleDetection-release-2.5\ppdet\modeling\tests\test_architectures.py", line 20, in <module> import ppdet File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\ppdet\__init__.py", line 15, in <module> from . import (core, data, engine, modeling, model_zoo, optimizer, metrics, File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\ppdet\data\__init__.py", line 16, in <module> from . import transform File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\ppdet\data\transform\__init__.py", line 15, in <module> from . import operators File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\ppdet\data\transform\operators.py", line 57, in <module> from ppdet.modeling.keypoint_utils import get_affine_transform, affine_transform File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\ppdet\modeling\__init__.py", line 25, in <module> from . import architectures File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\ppdet\modeling\architectures\__init__.py", line 30, in <module> from . import deepsort File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\ppdet\modeling\architectures\deepsort.py", line 22, in <module> from ppdet.modeling.mot.utils import Detection, get_crops, scale_coords, clip_box File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\ppdet\modeling\mot\__init__.py", line 16, in <module> from . import tracker File "C:\Users\win10\AppData\Local\Programs\Python
最新发布
11-13
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值