From cab22f228ac3dd78af3e2d695f9cbdc8f32a8f56 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 8 May 2018 23:01:24 -0700 Subject: [PATCH] hide dotfiles by default in /cloud - the web interface (they are still accessible but hidden). Change this behaviour with pconfig system.show_dot_files --- Zotlabs/Storage/Directory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zotlabs/Storage/Directory.php b/Zotlabs/Storage/Directory.php index 7068ee15a..b30d45b0e 100644 --- a/Zotlabs/Storage/Directory.php +++ b/Zotlabs/Storage/Directory.php @@ -719,6 +719,8 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota, DAV\IMo ); foreach ($r as $rr) { + if((strpos($rr['filename'],'.') === 0) && (! get_pconfig($channel_id,'system','show_dot_files'))) + continue; // @FIXME I don't think we use revisions currently in attach structures. // In case we see any in the wild provide a unique filename. This