浏览代码

Fix Windows importer issue with new file detection

Yahkub-R 1 年之前
父节点
当前提交
6db8e3b6b1
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      drivers/windows/file_access_windows.cpp

+ 2 - 3
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);