mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-28 23:06:43 -04:00
New: Drone now uses the Download Client API to determine if a download is ready for import. (User configuration is required to replace the drone factory with this feature)
This commit is contained in:
@@ -137,7 +137,7 @@ namespace NzbDrone.Common.Test.DiskProviderTests
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void move_read_only_file()
|
||||
public void should_be_able_to_move_read_only_file()
|
||||
{
|
||||
var source = GetTempFilePath();
|
||||
var destination = GetTempFilePath();
|
||||
@@ -151,6 +151,23 @@ namespace NzbDrone.Common.Test.DiskProviderTests
|
||||
Subject.MoveFile(source, destination);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_be_able_to_delete_directory_with_read_only_file()
|
||||
{
|
||||
var sourceDir = GetTempFilePath();
|
||||
var source = Path.Combine(sourceDir, "test.txt");
|
||||
|
||||
Directory.CreateDirectory(sourceDir);
|
||||
|
||||
Subject.WriteAllText(source, "SourceFile");
|
||||
|
||||
File.SetAttributes(source, FileAttributes.ReadOnly);
|
||||
|
||||
Subject.DeleteFolder(sourceDir, true);
|
||||
|
||||
Directory.Exists(sourceDir).Should().BeFalse();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void empty_folder_should_return_folder_modified_date()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user