优化文件路径检查逻辑,修正路径引用方式以确保文件存在性验证
This commit is contained in:
@ -309,7 +309,7 @@ class Data:
|
||||
"Input_SA_Label", "Input_Stage"]
|
||||
|
||||
for file_key in check_file_list:
|
||||
if (not self.config["Path"][file_key].is_file()) or (not self.config["Path"][file_key].exists()):
|
||||
if (not Path(self.config["Path"][file_key]).is_file()) or (not Path(self.config["Path"][file_key]).exists()):
|
||||
return Result().failure(info=Constants.INPUT_FAILURE + "\n" +
|
||||
str(self.config["Path"][file_key]) + file_key +
|
||||
Constants.FAILURE_REASON["Path_Not_Exist"])
|
||||
|
||||
Reference in New Issue
Block a user