mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-14 07:26:51 +00:00
Update RemoveLink version to 1.8
This commit is contained in:
@@ -362,7 +362,7 @@
|
||||
"RemoveLink": {
|
||||
"name": "清理硬链接",
|
||||
"description": "监控目录内文件被删除时,同步删除监控目录内所有和它硬链接的文件",
|
||||
"version": "1.7",
|
||||
"version": "1.8",
|
||||
"icon": "Ombi_A.png",
|
||||
"author": "DzAvril",
|
||||
"level": 1
|
||||
|
||||
@@ -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)
|
||||
# 检查当前目录是否为空
|
||||
|
||||
Reference in New Issue
Block a user