Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #5

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading