Make paths absolute to fix permissions issues

on Android
This commit is contained in:
2023-06-16 11:16:29 +02:00
parent a939497f1a
commit 25215ea41a
3 changed files with 5 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ func PollWebsocket():
print("trying to open " + result_path)
var resut_file = FileAccess.open(result_path,FileAccess.READ)
result_value = "{path}:{data}".format({
"path":result_path,
"path": result_path.get_file(),
"data": Marshalls.raw_to_base64(resut_file.get_buffer(resut_file.get_length()))
})
var debugFile = FileAccess.open("user://debug.log", FileAccess.WRITE)