Merge pull request #48 from Excello-Recherche-Education/small-debug
Small debug
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ func extract(zip_path: String, extract_path: String, extract_in_subfolder: bool
|
||||
file_count.emit(all_files.size())
|
||||
|
||||
var copied_file: int = 0
|
||||
var first_folder: String
|
||||
var first_folder: String = ""
|
||||
for sub_path: String in all_files:
|
||||
if not first_folder:
|
||||
first_folder = sub_path.split("/")[0]
|
||||
|
||||
@@ -29,6 +29,7 @@ func write_folder_recursive(abs_path: String, rel_path: String) -> Error:
|
||||
if file:
|
||||
write_file(file.get_buffer(file.get_length()))
|
||||
file.close()
|
||||
close_file()
|
||||
else:
|
||||
return FileAccess.get_open_error()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user