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()); }