From 51dbdf2fbc2741fff582387561c3d4cf92c9cc76 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 7 May 2020 10:59:11 +0200 Subject: [PATCH] fix dotfiles --- Pages/Index.cshtml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs index a4eba49..fd7d0c5 100644 --- a/Pages/Index.cshtml.cs +++ b/Pages/Index.cshtml.cs @@ -34,9 +34,11 @@ namespace webmusic.Pages fullpath = root + path; displaypath = string.IsNullOrWhiteSpace(path) ? "/" : path; dirs = Directory.GetDirectories(fullpath).Select(Path.GetFileName).ToList(); + dirs.RemoveAll(p => p.StartsWith(".")); dirs.Sort(); files = Directory.GetFiles(fullpath).Select(Path.GetFileName).ToList(); files.RemoveAll(p => p.EndsWith(".m3u")); + files.RemoveAll(p => p.StartsWith(".")); files.Sort(new AlphanumComparatorFast()); }