aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-05-11 19:13:08 -0500
committerJP Dillingham <jp@dillingham.me>2024-05-11 19:13:08 -0500
commit3ddbba90fbbe67e2ca6f2d58a09c578efefa8f3d (patch)
tree62efb3cb84a6fc4a0ceb04453b2bb78b74078258 /src
parentf54a5ec419bdbcddcaea760c984df7cc47005905 (diff)
downloadslskd-3ddbba90fbbe67e2ca6f2d58a09c578efefa8f3d.tar.gz
docs, default delete to false
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Files/FileService.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Files/FileService.cs b/src/slskd/Files/FileService.cs
index 67488491..c3da7621 100644
--- a/src/slskd/Files/FileService.cs
+++ b/src/slskd/Files/FileService.cs
@@ -307,7 +307,8 @@ namespace slskd.Files
/// <returns>The fully qualified filename of the resulting file.</returns>
/// <exception cref="ArgumentNullException">Thrown if either of the specified file or directories are null or contain only whitespace.</exception>
/// <exception cref="FileNotFoundException">Thrown if the specified <paramref name="sourceFilename"/> does not exist.</exception>
- public virtual string MoveFile(string sourceFilename, string destinationDirectory, bool overwrite = false, bool deleteEmptiedParentDirectory = true)
+ /// <exception cref="IOException">Thrown if the file can't be moved, or the <paramref name="deleteEmptiedParentDirectory"/> option is set and the operation fails.</exception>
+ public virtual string MoveFile(string sourceFilename, string destinationDirectory, bool overwrite = false, bool deleteEmptiedParentDirectory = false)
{
ArgumentNullException.ThrowIfNullOrWhiteSpace(sourceFilename, nameof(sourceFilename));
ArgumentNullException.ThrowIfNullOrWhiteSpace(destinationDirectory, nameof(destinationDirectory));