Skip to content

Commit

Permalink
fix file name edit on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
plucafs committed Dec 4, 2024
1 parent d48dba4 commit 220d46f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/edit.gd
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ func update_file_tag(new_tags: PackedStringArray):
+ extension
)

var new_file_path = slash + slash.join(file_name_parts)
var starting_slash = "" if Utils.is_os_windows() else Utils.SLASH_UNIX
var new_file_path = starting_slash + slash.join(file_name_parts)
print("New tags\n %s\n %s" % [active_dir, new_file_path])

var err := DirAccess.rename_absolute(active_dir, new_file_path)
Expand Down

0 comments on commit 220d46f

Please sign in to comment.