Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: Don't rollback file move if destination already exists
(cherry picked from commit f05405fe1ce4c78a8c75e27920c863c5b83686bd) (cherry picked from commit 8ab040f612ee04dac4813a08cdeaddd446a64dc9)
- Loading branch information
1 parent
d0fbb1f
commit c02bfb5
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
|
||
namespace NzbDrone.Common.Disk | ||
{ | ||
public class FileAlreadyExistsException : Exception | ||
{ | ||
public string Filename { get; set; } | ||
|
||
public FileAlreadyExistsException(string message, string filename) | ||
: base(message) | ||
{ | ||
Filename = filename; | ||
} | ||
} | ||
} |