fix dotfiles

This commit is contained in:
Laura Hausmann 2020-05-07 10:59:11 +02:00
parent 946172a7f8
commit 51dbdf2fbc

View file

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