Fixed: Don't ignore filenames that start with periods

This commit is contained in:
Qstick
2017-10-29 21:30:18 -04:00
parent a1bf1b99f5
commit 2dddf8cb33
2 changed files with 17 additions and 1 deletions
@@ -250,6 +250,22 @@ namespace NzbDrone.Core.Test.MediaFiles.DiskScanServiceTests
.Verify(v => v.GetImportDecisions(It.Is<List<string>>(l => l.Count == 4), _artist), Times.Once());
}
[Test]
public void should_scan_files_that_start_with_period()
{
GivenArtistFolder();
GivenFiles(new List<string>
{
Path.Combine(_artist.Path, "Album 1", ".t01.mp3").AsOsAgnostic()
});
Subject.Scan(_artist);
Mocker.GetMock<IMakeImportDecision>()
.Verify(v => v.GetImportDecisions(It.Is<List<string>>(l => l.Count == 1), _artist), Times.Once());
}
[Test]
public void should_not_scan_subfolders_that_start_with_period()
{