Compare commits

..

1 Commits

Author SHA1 Message Date
bakonpancakz 26e2a4e0e3 feature: Hide Dotfiles
And Dotdirs if thats a thing. Enabled by default, use envvars to disable this feature.
2026-06-18 20:51:42 -07:00
3 changed files with 13 additions and 3 deletions
+4 -3
View File
@@ -10,9 +10,10 @@ A Miku flavored file browser inspired by THE FLAVOR FOLEY FILES (https://flavorf
Configure the service using environment variables:
| Name | Default | Description
| HTTP_ADDRESS | 127.0.0.1:9000 | Address and Port to use for requests
| HTTP_DIRECTORY | <empty> | Starting directory to list and serve files from
| Name | Default | Description
| HTTP_ADDRESS | 127.0.0.1:9000 | Address and Port to use for requests
| HTTP_DIRECTORY | <empty> | Starting directory to list and serve files from
| HTTP_SHOW_DOTFILES | <empty> | Set this variable to list directories and files prefixed with a dot (e.g. .DS_Store)
[ Credits ]
+6
View File
@@ -23,6 +23,7 @@ var (
privateDirectory embed.FS
serveHash = fmt.Sprintf("%X", time.Now().Unix())
serveDirectory = os.Getenv("HTTP_DIRECTORY")
serveDotfiles = os.Getenv("HTTP_SHOW_DOTFILES")
serveAddress = os.Getenv("HTTP_ADDRESS")
tmpl = template.Must(
template.
@@ -194,6 +195,11 @@ func main() {
continue
}
// Ignore Dotfiles
if serveDotfiles != "" && strings.HasPrefix(entry.Name(), ".") {
continue
}
// Check Symbolic Link
isDir := entry.IsDir()
if entry.Type()&os.ModeSymlink != 0 {
+3
View File
@@ -0,0 +1,3 @@
I'M CALLING OUT YOUR NAME RECEIVING NO REPLY
[ REFLECTED OFF THE SIDE OF THE SKYLINE ]
CALLING OUT IN VAIN, LIKE YOU WOULD EVEN TRY