mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix
This commit is contained in:
@@ -161,7 +161,8 @@ class AutoBackup(_PluginBase):
|
||||
config_path = Path(settings.CONFIG_PATH)
|
||||
backup_file = f"bk_{time.strftime('%Y%m%d%H%M%S')}"
|
||||
backup_path = bk_path / backup_file
|
||||
backup_path.mkdir(parents=True)
|
||||
if not backup_path.exists():
|
||||
backup_path.mkdir(parents=True)
|
||||
|
||||
# 把现有的相关文件进行copy备份
|
||||
category_file = config_path / "category.yaml"
|
||||
|
||||
Reference in New Issue
Block a user