Fix errors when attempting to set UNIX permissions when unavailable
This makes exporting from Windows to Linux work again. This closes #29416.
This commit is contained in:
parent
1abca62697
commit
cbd31d9f0b
|
@ -308,8 +308,8 @@ uint32_t FileAccessEncrypted::_get_unix_permissions(const String &p_file) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Error FileAccessEncrypted::_set_unix_permissions(const String &p_file, uint32_t p_permissions) {
|
Error FileAccessEncrypted::_set_unix_permissions(const String &p_file, uint32_t p_permissions) {
|
||||||
|
ERR_PRINT("Setting UNIX permissions on encrypted files is not implemented yet");
|
||||||
return FAILED;
|
return ERR_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileAccessEncrypted::FileAccessEncrypted() {
|
FileAccessEncrypted::FileAccessEncrypted() {
|
||||||
|
|
|
@ -501,13 +501,13 @@ uint64_t FileAccessNetwork::_get_modified_time(const String &p_file) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t FileAccessNetwork::_get_unix_permissions(const String &p_file) {
|
uint32_t FileAccessNetwork::_get_unix_permissions(const String &p_file) {
|
||||||
//could be implemented, not sure if worth it
|
ERR_PRINT("Getting UNIX permissions from network drives is not implemented yet");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Error FileAccessNetwork::_set_unix_permissions(const String &p_file, uint32_t p_permissions) {
|
Error FileAccessNetwork::_set_unix_permissions(const String &p_file, uint32_t p_permissions) {
|
||||||
|
ERR_PRINT("Setting UNIX permissions on network drives is not implemented yet");
|
||||||
return FAILED;
|
return ERR_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileAccessNetwork::configure() {
|
void FileAccessNetwork::configure() {
|
||||||
|
|
|
@ -340,13 +340,11 @@ uint64_t FileAccessWindows::_get_modified_time(const String &p_file) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t FileAccessWindows::_get_unix_permissions(const String &p_file) {
|
uint32_t FileAccessWindows::_get_unix_permissions(const String &p_file) {
|
||||||
ERR_PRINT("Windows does not support unix permissions");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Error FileAccessWindows::_set_unix_permissions(const String &p_file, uint32_t p_permissions) {
|
Error FileAccessWindows::_set_unix_permissions(const String &p_file, uint32_t p_permissions) {
|
||||||
ERR_PRINT("Windows does not support unix permissions");
|
return ERR_UNAVAILABLE;
|
||||||
return FAILED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FileAccessWindows::FileAccessWindows() :
|
FileAccessWindows::FileAccessWindows() :
|
||||||
|
|
Loading…
Reference in New Issue