mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-10-30 14:20:01 +08:00
fixed # 修复工作流BUG
This commit is contained in:
@@ -14,7 +14,7 @@ def prepare_directory(target, legacy=None):
|
||||
if legacy is not None:
|
||||
legacy = Path(legacy).absolute()
|
||||
if (target.name != 'farm_db' or legacy.name != 'farm_preview'
|
||||
or target.parent != legacy.parent):
|
||||
or target.parent.resolve() != legacy.parent.resolve()):
|
||||
raise ValueError('Farm migration requires default sibling paths')
|
||||
if target.is_symlink() or legacy.is_symlink():
|
||||
raise ValueError('Farm migration does not follow directory links')
|
||||
|
||||
Reference in New Issue
Block a user