Skip to content

Commit 0ff8c15

Browse files
authored
Fix for Issue #402 (#408)
Fixed issue where nested folders would delete contained files
1 parent dfac71e commit 0ff8c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/dialogic/Other/DialogicUtil.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static func add_folder(path:String, folder_name:String):
200200
static func remove_folder(folder_path:String, delete_files:bool = true):
201201
#print("[D] Removing 'Folder' "+folder_path)
202202
for folder in get_folder_at_path(folder_path)['folders']:
203-
remove_folder(folder_path+"/"+folder)
203+
remove_folder(folder_path+"/"+folder, delete_files)
204204

205205
if delete_files:
206206
for file in get_folder_at_path(folder_path)['files']:

0 commit comments

Comments
 (0)