diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index 25acae95fa3b1d6640060ed0874b8538c77a9309..08c4b25a08883e0dd184d8fee3319dda0f24fc06 100644
--- a/apps/files_external/lib/smb.php
+++ b/apps/files_external/lib/smb.php
@@ -349,6 +349,28 @@ class SMB extends Common {
 		}
 	}
 
+	public function isReadable($path) {
+		try {
+			$info = $this->getFileInfo($path);
+			return !$info->isHidden();
+		} catch (NotFoundException $e) {
+			return false;
+		} catch (ForbiddenException $e) {
+			return false;
+		}
+	}
+
+	public function isUpdatable($path) {
+		try {
+			$info = $this->getFileInfo($path);
+			return !$info->isHidden() && !$info->isReadOnly();
+		} catch (NotFoundException $e) {
+			return false;
+		} catch (ForbiddenException $e) {
+			return false;
+		}
+	}
+
 	/**
 	 * check if smbclient is installed
 	 */