Merge pull request #172 from DzAvril/main

This commit is contained in:
jxxghp
2024-04-04 06:48:13 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -362,7 +362,7 @@
"RemoveLink": {
"name": "清理硬链接",
"description": "监控目录内文件被删除时,同步删除监控目录内所有和它硬链接的文件",
"version": "1.7",
"version": "1.8",
"icon": "Ombi_A.png",
"author": "DzAvril",
"level": 1

View File

@@ -91,7 +91,7 @@ class RemoveLink(_PluginBase):
# 插件图标
plugin_icon = "Ombi_A.png"
# 插件版本
plugin_version = "1.7"
plugin_version = "1.8"
# 插件作者
plugin_author = "DzAvril"
# 作者主页
@@ -369,7 +369,7 @@ class RemoveLink(_PluginBase):
删除空目录
"""
for mon_path in self.monitor_dirs.split("\n"):
for subdir, dirs, files in os.walk(mon_path):
for subdir, dirs, files in os.walk(mon_path, topdown=False):
for dir in dirs:
dir_path = os.path.join(subdir, dir)
# 检查当前目录是否为空