From 7cd62baa4501b9dbedfee2f13d5902555116a587 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 27 Jun 2021 18:18:20 -0500 Subject: add additional FTP options --- src/slskd/Options.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 73678df0..0993fa12 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -613,12 +613,28 @@ namespace slskd [Description("FTP password")] public string Password { get; private set; } + /// + /// Gets the remote path for uploads. + /// + [Argument(default, "ftp-remote-path")] + [EnvironmentVariable("FTP_REMOTE_PATH")] + [Description("remote path for uploads")] + public string RemotePath { get; private set; } = "/"; + + /// + /// Gets a value indicating whether existing files should be overwritten. + /// + [Argument(default, "ftp-overwrite-existing")] + [EnvironmentVariable("FTP_OVERWRITE_EXISTING")] + [Description("overwrite existing files")] + public bool OverwriteExisting { get; private set; } = true; + /// /// Gets the number of times failing uploads will be retried. /// [Argument(default, "ftp-retry-attempts")] [EnvironmentVariable("FTP_RETRY_ATTEMPTS")] - [Description("The number of times failing uploads will be retried")] + [Description("number of times failing uploads will be retried")] public int RetryAttempts { get; private set; } = 5; } } -- cgit v1.2.3