summaryrefslogtreecommitdiffstats
path: root/drivers/windows
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-02 12:12:38 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-02 12:12:38 +0200
commit9ff888bcd4ba74f94d5854ba9243d0f93a367f7a (patch)
tree62aa761927a762c459265228d62e8f89ef6a65e5 /drivers/windows
parent0a688e284f30c18c9fc80b705493a9e583b95d13 (diff)
parent6db8e3b6b14a8a2ed3a0b16954b653f8c689f60f (diff)
downloadredot-engine-9ff888bcd4ba74f94d5854ba9243d0f93a367f7a.tar.gz
Merge pull request #96398 from yahkr/fix-win-new-file
Fix Windows importer issue with new file detection
Diffstat (limited to 'drivers/windows')
-rw-r--r--drivers/windows/file_access_windows.cpp5
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);