aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Backend
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-05-23 21:23:56 +0200
committerRobin Appelman <robin@icewind.nl>2019-05-23 21:23:56 +0200
commit6d5579863ee52663917d042ee2a09b1e6d160f55 (patch)
tree1b92690b3b3a10cde78cdb7947c7220d68b4a99d /apps/files_external/lib/Lib/Backend
parentf2885c171f5fc3b3dc54b612454616f5a929132a (diff)
downloadnextcloud-server-6d5579863ee52663917d042ee2a09b1e6d160f55.tar.gz
nextcloud-server-6d5579863ee52663917d042ee2a09b1e6d160f55.zip
add option to show hidden files in SMB shares
Note hidden files can mean different things in smb and the option the the files web ui, the webui only counts files starting with '.' as hidden, while smb files can be marked as hidden regardless, any files that are marked as hidden on smb will thus be shown in the webui regardless of the setting in the files app. Fixes #15644 Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Lib/Backend')
-rw-r--r--apps/files_external/lib/Lib/Backend/SMB.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Backend/SMB.php b/apps/files_external/lib/Lib/Backend/SMB.php
index c871dc69771..0543247051f 100644
--- a/apps/files_external/lib/Lib/Backend/SMB.php
+++ b/apps/files_external/lib/Lib/Backend/SMB.php
@@ -50,6 +50,9 @@ class SMB extends Backend {
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
(new DefinitionParameter('domain', $l->t('Domain')))
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
+ (new DefinitionParameter('show_hidden', $l->t('Show hidden files')))
+ ->setType(DefinitionParameter::VALUE_BOOLEAN)
+ ->setFlag(DefinitionParameter::FLAG_OPTIONAL),
])
->addAuthScheme(AuthMechanism::SCHEME_PASSWORD)
->addAuthScheme(AuthMechanism::SCHEME_SMB)