修复了文件夹不存在时无法保存的问题
This commit is contained in:
@ -322,6 +322,9 @@ class Data:
|
||||
return Result().success(info=Constants.CUT_PSG_ALIGN_LABEL_FINISHED)
|
||||
|
||||
def save(self):
|
||||
if (not Path(Config["Path"]["SaveFolder"]).exists()) or (not Path(Config["Path"]["SaveFolder"]).is_dir()):
|
||||
Path(Config["Path"]["SaveFolder"]).mkdir(parents=True, exist_ok=True)
|
||||
|
||||
for raw in self.raw.values():
|
||||
if len(raw) == 0:
|
||||
return Result().failure(info=Constants.SAVING_FAILURE +
|
||||
|
||||
Reference in New Issue
Block a user