Commit cab22f22 authored by Zot's avatar Zot

hide dotfiles by default in /cloud - the web interface (they are still...

hide dotfiles by default in /cloud - the web interface (they are still accessible but hidden). Change this behaviour with pconfig system.show_dot_files
parent 0545baaf
...@@ -719,6 +719,8 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota, DAV\IMo ...@@ -719,6 +719,8 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota, DAV\IMo
); );
foreach ($r as $rr) { 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. // @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 // In case we see any in the wild provide a unique filename. This
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment