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())
|
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]
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user