diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-06 11:15:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-06 11:15:20 -0500 |
| commit | ec836b73cf40226d7a754b42762f4dab44b97749 (patch) | |
| tree | 06030fad73ed32f4701f88a2dc492f83e7fc8a81 /src/slskd/Integrations | |
| parent | 2e3fd1d2f66a9f5ec2b1ec80d6c19348529cab63 (diff) | |
| parent | d35ac4573e2ac5817af3a2b9a6025d41959b9caf (diff) | |
| download | slskd-ec836b73cf40226d7a754b42762f4dab44b97749.tar.gz | |
Merge pull request #1746 from slskd/destination
Add options providing granular control over download location
Diffstat (limited to 'src/slskd/Integrations')
| -rw-r--r-- | src/slskd/Integrations/FTP/FTPService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Integrations/FTP/FTPService.cs b/src/slskd/Integrations/FTP/FTPService.cs index 8c270d6a..597a34f3 100644 --- a/src/slskd/Integrations/FTP/FTPService.cs +++ b/src/slskd/Integrations/FTP/FTPService.cs @@ -109,7 +109,7 @@ namespace slskd.Integrations.FTP private async Task AttemptUploadAsync(string filename) { var fileAndParentDirectory = GetFileAndParentDirectoryFromFilename(filename); - var remotePath = FtpOptions.RemotePath.TrimEnd('/').TrimEnd('\\'); + var remotePath = FtpOptions.RemotePath.TrimEnd('/', '\\'); var remoteFilename = $"{remotePath}/{fileAndParentDirectory}"; var existsMode = FtpOptions.OverwriteExisting ? FtpRemoteExists.Overwrite : FtpRemoteExists.Skip; |
