This commit is contained in:
fatiao 2025-03-02 14:28:52 +08:00
parent 231f04d41d
commit b43c2ad768
2 changed files with 8 additions and 2 deletions

View File

@ -23,10 +23,16 @@ def list_files_relative_path(input_dir, ignore):
if __name__ == "__main__":
xml_input_directory = r"C:\Users\letme\Desktop\Work\LeGang\ro-webgl\Assets\Content\Xml"
xml_output_file_path = r"C:\Users\letme\Desktop\Work\LeGang\ro-webgl\Assets\Resources\files_xml.txt"
result = list_files_relative_path(xml_input_directory, "*")
result = list_files_relative_path(xml_input_directory, "Skill")
with open(xml_output_file_path, 'w', encoding='utf-8') as f:
f.write(result)
skill_input_directory = r"C:\Users\letme\Desktop\Work\LeGang\ro-webgl\Assets\Content\Xml\Skill"
skill_output_file_path = r"C:\Users\letme\Desktop\Work\LeGang\ro-webgl\Assets\Resources\files_skill.txt"
result = list_files_relative_path(skill_input_directory, "*")
with open(skill_output_file_path, 'w', encoding='utf-8') as f:
f.write(result)
csv_input_directory = r"C:\Users\letme\Desktop\Work\LeGang\ro-webgl\Assets\Content\Config"
csv_output_file_path = r"C:\Users\letme\Desktop\Work\LeGang\ro-webgl\Assets\Resources\files_csv.txt"
result = list_files_relative_path(csv_input_directory, "*")