fix: preserve file path order in build_file_path function

This commit is contained in:
yangdx 2025-07-26 10:21:32 +08:00
parent 6efa8ab263
commit a943265257

View file

@ -3136,10 +3136,8 @@ def build_file_path(already_file_paths, data_list, target):
# set: deduplication
file_paths_set = {fp for fp in already_file_paths if fp}
# string: deduplication sorted
file_paths = GRAPH_FIELD_SEP.join(
list(dict.fromkeys(fp for fp in already_file_paths if fp))
)
# string: filter empty value and keep file order in already_file_paths
file_paths = GRAPH_FIELD_SEP.join(fp for fp in already_file_paths if fp)
# ignored file_paths
file_paths_ignore = ""
# add file_paths