fit nonebot.beta2

This commit is contained in:
HibiKier
2022-02-19 18:20:19 +08:00
parent ab443a21ec
commit 7dd68cf1ef
212 changed files with 6857 additions and 5615 deletions
+2 -1
View File
@@ -31,7 +31,7 @@ class ResourcesManager(StaticData):
if isinstance(source_file, Path):
source_file = str(source_file.absolute())
if isinstance(move_file, Path):
move_file = move_file.absolute()
move_file = str(move_file.absolute())
if module not in self._data.keys():
self._data[module] = {source_file: move_file}
else:
@@ -97,6 +97,7 @@ class ResourcesManager(StaticData):
"""
添加临时清理文件夹
:param path: 路径
:param recursive: 是否将该目录下的所有目录也添加为临时文件夹
"""
if isinstance(path, str):
path = Path(path)