mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 17:41:19 +00:00
Revert "added get_creation_time function for gdscript"
This commit is contained in:
parent
275e0d5ee4
commit
ea3d997f9d
24 changed files with 0 additions and 133 deletions
|
|
@ -297,22 +297,6 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) {
|
|||
};
|
||||
}
|
||||
|
||||
// NEW FUNCTION
|
||||
uint64_t FileAccessUnix::_get_creation_time(const String &p_file) {
|
||||
|
||||
String file = fix_path(p_file);
|
||||
struct stat flags;
|
||||
int err = stat(file.utf8().get_data(), &flags);
|
||||
|
||||
if (!err) {
|
||||
return flags.st_ctime;
|
||||
} else {
|
||||
print_line("ERROR IN: " + p_file);
|
||||
|
||||
ERR_FAIL_V(0);
|
||||
};
|
||||
}
|
||||
|
||||
Error FileAccessUnix::_chmod(const String &p_path, int p_mod) {
|
||||
int err = chmod(p_path.utf8().get_data(), p_mod);
|
||||
if (!err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue