summaryrefslogtreecommitdiffstats
path: root/core/io/file_access_network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/file_access_network.cpp')
-rw-r--r--core/io/file_access_network.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/io/file_access_network.cpp b/core/io/file_access_network.cpp
index 21e3a4172b..98403bf3f1 100644
--- a/core/io/file_access_network.cpp
+++ b/core/io/file_access_network.cpp
@@ -498,6 +498,24 @@ uint64_t FileAccessNetwork::_get_modified_time(const String &p_file) {
return exists_modtime;
}
+// NEW FUNCTION
+uint64_t FileAccessNetwork::_get_creation_time(const String &p_file) {
+
+ FileAccessNetworkClient *nc = FileAccessNetworkClient::singleton;
+ nc->lock_mutex();
+ nc->put_32(id);
+ nc->put_32(COMMAND_GET_MODTIME);
+ CharString cs = p_file.utf8();
+ nc->put_32(cs.length());
+ nc->client->put_data((const uint8_t *)cs.ptr(), cs.length());
+ nc->unlock_mutex();
+ DEBUG_PRINT("MODTIME POST");
+ nc->sem->post();
+ sem->wait();
+
+ return exists_modtime;
+}
+
void FileAccessNetwork::configure() {
GLOBAL_DEF("network/remote_fs/page_size", 65536);