mirror of
https://tildegit.org/solderpunk/molly-brown
synced 2024-05-13 04:26:03 +02:00
Don't list dot files.
This commit is contained in:
parent
0de58e031a
commit
a67d1b113a
|
@ -156,6 +156,10 @@ func generateDirectoryListing(path string) string {
|
|||
}
|
||||
listing = "# Directory listing\n\n"
|
||||
for _, file := range files {
|
||||
// Skip dotfiles
|
||||
if strings.HasPrefix(file.Name(), ".") {
|
||||
continue
|
||||
}
|
||||
// Only list world readable files
|
||||
if uint64(file.Mode().Perm())&0444 != 0444 {
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue