diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-05-11 19:13:08 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-05-11 19:13:08 -0500 |
| commit | 3ddbba90fbbe67e2ca6f2d58a09c578efefa8f3d (patch) | |
| tree | 62efb3cb84a6fc4a0ceb04453b2bb78b74078258 /src/slskd | |
| parent | f54a5ec419bdbcddcaea760c984df7cc47005905 (diff) | |
| download | slskd-3ddbba90fbbe67e2ca6f2d58a09c578efefa8f3d.tar.gz | |
docs, default delete to false
Diffstat (limited to 'src/slskd')
| -rw-r--r-- | src/slskd/Files/FileService.cs | 3 |
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)); |
