文件操作 - _error.py
返回文件管理
返回主菜单
删除本文件
文件: /opt/alt/python37/lib/python3.7/site-packages/filelock/_error.py
编辑文件内容
from __future__ import annotations class Timeout(TimeoutError): """Raised when the lock could not be acquired in *timeout* seconds.""" def __init__(self, lock_file: str) -> None: #: The path of the file lock. self.lock_file = lock_file def __str__(self) -> str: return f"The file lock '{self.lock_file}' could not be acquired." __all__ = [ "Timeout", ]
修改文件时间
将文件时间修改为当前时间的前一年
删除文件