-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot 4.4 get_modified_time fails on Windows system #103581
Comments
Can't reproduce on my end. When you did the first test was checking if file exists? Any file returns 0? When returns 0 means an error occurred (most of the cases an invalid path). |
What kind of files are you checking? If you are trying to get modification time of the file with It should return
|
The same script works without issues on Godot 4.3 official version. File exists and path Is an absolute path with a file at the end (in that case a SQLite file) |
The first check, file exists, pass without problem. Path Is valid and real. |
Hi @Calinou, It might be related to the pull "Reduce code duplication in FileAccess ([GH-92167]" from DEV 2 Changelog (#92167)) ? Thanks in advance. |
Most likely it is related to #74830, but not sure why it's not working in your case. The only reason I can think of is, the file is already opened for writing with exclusive access, which might be interfering with the |
I don't know, but I don't think it's due to some blocking problem on the specific file. I have tested on many different files and I confirm that the dev 1 build does not show any problems, unlike the dev 2 |
Blocking definite is an issue, and easily reproducible one. It's possible that there's something else as well, but I can't reproduce it with any other file. |
Tested versions
System information
Windows 10 - v4.4.stable.official [4c311cb]
Issue description
FileAccess.get_modified_time(file_path) returns "0" on Windows system.
Steps to reproduce
Minimal reproduction project (MRP)
See "Steps to reproduce"
The text was updated successfully, but these errors were encountered: