Skip to content

Commit

Permalink
Merge pull request #5 from LyaaaaaGames/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Lyaaaaaaaaaaaaaaa authored Aug 7, 2024
2 parents b2f95ab + 49bd2cd commit d2e89d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DirUtils.gd
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
#-- - 06/08/2024 Lyaaaaa
#-- - Renamed cut_file into move_file to be more explicit.
#--
#-- - 07/08/2024 Lyaaaaa
#-- - Now extends EditorPlugin.
#------------------------------------------------------------------------------
@tool
class_name Dir_Utils
extends DirAccess
extends EditorPlugin

static func get_files_names(p_path_to_folder : String,
p_get_extension : bool = true) -> PackedStringArray:
Expand Down
3 changes: 3 additions & 0 deletions tests/test_dir_utils.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#-- - Updated test_delete to delete all the files declared in files
#-- (forgot to update it when added a fourth file in files var).
#-- - Updated test_get_folder_size to correctly do its job and to clean his mess.
#-- - Updated test_copy_file to clean afterwards.
#------------------------------------------------------------------------------
extends GutTest

Expand Down Expand Up @@ -232,3 +233,5 @@ func test_copy_file() -> void:

var destination_file := FileAccess.open(destination, FileAccess.READ)
assert_eq(destination_file.get_as_text(), "content")

Dir_Utils.delete(destination)

0 comments on commit d2e89d7

Please sign in to comment.