Fixed: FolderWritable check for CIFS shares mounted in Unix

See https://github.com/dotnet/runtime/issues/42790

Implemented workaround in https://github.com/dotnet/runtime/issues/42790#issuecomment-700362617
This commit is contained in:
ta264
2020-12-21 21:38:24 +00:00
committed by Qstick
parent 3fc60dc56d
commit 025cb04035
2 changed files with 21 additions and 2 deletions

View File

@@ -10,6 +10,16 @@ namespace NzbDrone.Common.Test.DiskTests
public abstract class DiskProviderFixtureBase<TSubject> : TestBase<TSubject>
where TSubject : class, IDiskProvider
{
[Test]
public void writealltext_should_truncate_existing()
{
var file = GetTempFilePath();
Subject.WriteAllText(file, "A pretty long string");
Subject.WriteAllText(file, "A short string");
Subject.ReadAllText(file).Should().Be("A short string");
}
[Test]
public void directory_exist_should_be_able_to_find_existing_folder()
{