diff options
author | Yahkub-R <62478788+Yahkub-R@users.noreply.github.com> | 2024-08-31 14:19:28 -0400 |
---|---|---|
committer | Yahkub-R <62478788+Yahkub-R@users.noreply.github.com> | 2024-09-01 10:24:29 -0400 |
commit | 6db8e3b6b14a8a2ed3a0b16954b653f8c689f60f (patch) | |
tree | 28c241ab5829649e9050e2e50eb8931bff9ff1ab /drivers | |
parent | 61598c5c88d95b96811d386cb20d714c35f4c6d7 (diff) | |
download | redot-engine-6db8e3b6b14a8a2ed3a0b16954b653f8c689f60f.tar.gz |
Fix Windows importer issue with new file detection
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/windows/file_access_windows.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp index f6f721639c..e4097cf46e 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); |