Skip to content

Commit

Permalink
Merge pull request #2501 from jrb0001/gdignore
Browse files Browse the repository at this point in the history
Ignore directories ignored by godot (.gdignore file)
  • Loading branch information
zaknafean authored Jan 3, 2025
2 parents 528777d + 9901e77 commit 94989bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dialogic/Core/DialogicResourceUtil.gd
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static func list_resources_of_type(extension:String) -> Array:

static func scan_folder(path:String, extension:String) -> Array:
var list: Array = []
if DirAccess.dir_exists_absolute(path):
if DirAccess.dir_exists_absolute(path) and not FileAccess.file_exists(path + "/" + ".gdignore"):
var dir := DirAccess.open(path)
dir.list_dir_begin()
var file_name := dir.get_next()
Expand Down

0 comments on commit 94989bc

Please sign in to comment.