From 6db8e3b6b14a8a2ed3a0b16954b653f8c689f60f Mon Sep 17 00:00:00 2001 From: Yahkub-R <62478788+Yahkub-R@users.noreply.github.com> Date: Sat, 31 Aug 2024 14:19:28 -0400 Subject: [PATCH] Fix Windows importer issue with new file detection --- drivers/windows/file_access_windows.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp index f6f721639c3..e4097cf46ee 100644 --- a/drivers/windows/file_access_windows.cpp +++ b/drivers/windows/file_access_windows.cpp @@ -559,11 +559,10 @@ uint64_t FileAccessWindows::_get_modified_time(const String &p_file) { return 0; } - String file = p_file; - if (file.ends_with("/") && file != "/") { + String file = fix_path(p_file); + if (file.ends_with("\\") && file != "\\") { file = file.substr(0, file.length() - 1); } - file = fix_path(file); struct _stat st; int rv = _wstat((LPCWSTR)(file.utf16().get_data()), &st);