diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Transfers/Downloads/DownloadService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs index bf1be328..d1dfbd20 100644 --- a/src/slskd/Transfers/Downloads/DownloadService.cs +++ b/src/slskd/Transfers/Downloads/DownloadService.cs @@ -490,7 +490,7 @@ namespace slskd.Transfers.Downloads return new FileStream(localFilename, FileMode.Create); } - private static void MoveFile(string filename, string sourceDirectory, string destinationDirectory) + private static string MoveFile(string filename, string sourceDirectory, string destinationDirectory) { var sourceFilename = filename.ToLocalFilename(sourceDirectory); var destinationFilename = filename.ToLocalFilename(destinationDirectory); @@ -520,6 +520,8 @@ namespace slskd.Transfers.Downloads { Directory.Delete(Path.GetDirectoryName(sourceFilename)); } + + return destinationFilename; } } }
\ No newline at end of file |
