Merge pull request #48 from Excello-Recherche-Education/small-debug

Small debug
This commit is contained in:
Adrien Ufferte
2025-07-11 14:58:52 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ func extract(zip_path: String, extract_path: String, extract_in_subfolder: bool
file_count.emit(all_files.size()) file_count.emit(all_files.size())
var copied_file: int = 0 var copied_file: int = 0
var first_folder: String var first_folder: String = ""
for sub_path: String in all_files: for sub_path: String in all_files:
if not first_folder: if not first_folder:
first_folder = sub_path.split("/")[0] first_folder = sub_path.split("/")[0]
+1
View File
@@ -29,6 +29,7 @@ func write_folder_recursive(abs_path: String, rel_path: String) -> Error:
if file: if file:
write_file(file.get_buffer(file.get_length())) write_file(file.get_buffer(file.get_length()))
file.close() file.close()
close_file()
else: else:
return FileAccess.get_open_error() return FileAccess.get_open_error()