summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/smb.php
diff options
context:
space:
mode:
authorJesús Macias <jmacias@solidgear.es>2015-12-03 12:28:52 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-04 16:33:08 +0100
commit8fa96435b0bda96a8e7082928d0ce0b2d54383aa (patch)
treeaa654edc43aa722f2d921d7fce906587d75bbc06 /apps/files_external/lib/smb.php
parent089b60cd255ecfc7b25c2f5b36179c2bdc46bcf6 (diff)
downloadnextcloud-server-8fa96435b0bda96a8e7082928d0ce0b2d54383aa.tar.gz
nextcloud-server-8fa96435b0bda96a8e7082928d0ce0b2d54383aa.zip
Add credentials dialog for user provided auth
Diffstat (limited to 'apps/files_external/lib/smb.php')
-rw-r--r--apps/files_external/lib/smb.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index 9da21dc88e6..50bd56f28ad 100644
--- a/apps/files_external/lib/smb.php
+++ b/apps/files_external/lib/smb.php
@@ -314,4 +314,17 @@ class SMB extends Common {
|| Server::NativeAvailable()
) ? true : ['smbclient'];
}
+
+ /**
+ * Test a storage for availability
+ *
+ * @return bool
+ */
+ public function test() {
+ try {
+ return parent::test();
+ } catch (Exception $e) {
+ return false;
+ }
+ }
}