From c03c5087aa6ac70491363b7dff05909f7bc64fe0 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 24 May 2026 12:52:16 -0500 Subject: rename 'incomplete' to 'partial', default to 'resume' (to match docs) --- docs/config.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 14f1ae24..40d3a78a 100644 --- a/docs/config.md +++ b/docs/config.md @@ -362,14 +362,14 @@ transfers: Failed downloads can be retried automatically up to the configured number of attempts. If an attempt fails initially, the application delays the second attempt by the configured delay, and an exponential backoff is used to compute the delay for all subsequent events, up to the configured maximum delay. -By default, partial downloads are resumed based on the size of the incomplete file. Users can choose to always overwrite files if they wish. +By default, partial downloads are resumed based on the size of the file on disk. Users can choose to always overwrite files if they wish. **YAML** ```yaml transfers: download: retry: - incomplete: resume # 'overwrite' or 'resume' + partial: resume # 'overwrite' or 'resume' attempts: 3 delay: 5000 # initial time between retries, in milliseconds max_delay: 60000 # maximum time between retries, in milliseconds -- cgit v1.2.3 From 5b6acb312f4e59a03064b56d627b0fad96fb9165 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 24 May 2026 13:09:39 -0500 Subject: clarify risk of resume --- docs/config.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 40d3a78a..8848060a 100644 --- a/docs/config.md +++ b/docs/config.md @@ -364,6 +364,8 @@ Failed downloads can be retried automatically up to the configured number of att By default, partial downloads are resumed based on the size of the file on disk. Users can choose to always overwrite files if they wish. +Incomplete files are stored in subdirectories including the remote user's username and the name of the containing directory on the remote user's PC, which minimizes (but does not completely eliminate!) the risk that a partial file is resumed incorrectly. Choosing to always overwrite files eliminates this risk but is less efficient and it increases the risk that the file will fail to fully transfer successfully. + **YAML** ```yaml transfers: -- cgit v1.2.3 From c8db4eea05780e230c52bfd53513d72f2c5c7f19 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 6 Jun 2026 19:19:18 -0500 Subject: docs for download permissions --- docs/config.md | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 8848060a..c8a8fca2 100644 --- a/docs/config.md +++ b/docs/config.md @@ -117,21 +117,11 @@ Users wishing to create files with different permissions can change the umask va When running within a docker container the environment variable `SLSKD_UMASK` can be used to change the umask for the process within the container, and this will in turn change the resulting file mode on a mounted volume. -Users can optionally configure alternative permissions for files by setting the file permission mode option. It's not possible to supersede the configured umask value; setting a mode of 777, for example, will have no effect with a umask of 022. - -These options have no effect on Windows. +This option has no effect on Windows. | Command-Line | Environment Variable | Description | | ------------------------ | -----------------------------| -------------------------------------------------------------------------------- | | n/a | `SLSKD_UMASK` | When running within the slskd Docker container, the umask for the process | -| `--file-permission-mode` | `SLSKD_FILE_PERMISSION_MODE` | The permissions to apply to newly created files (chmod syntax, non-Windows only) | - -#### **YAML** -```yaml -permissions: - file: - mode: 644 # not for Windows, chmod syntax, e.g. 644, 777. can't escalate beyond umask -``` # Application Directory Configuration @@ -377,6 +367,25 @@ transfers: max_delay: 60000 # maximum time between retries, in milliseconds ``` +## Destination + +### Permissions + +On [Unix-like](https://en.wikipedia.org/wiki/Unix-like) operating systems, downloaded files will be created according to the [umask](https://en.wikipedia.org/wiki/Umask) of the process (see [Permissions](#permissions) for more info). + +Users can optionally configure alternative permissions by setting the permission mode option which, when enabled, effectively causes slskd to `chmod` files and directories with the configured mode immediately after creation. + +This option has no effect on Windows. + +#### **YAML** +```yaml +transfers: + download: + destination: + permissions: + mode: 644 # chmod syntax, e.g. 644, 777. has no effect on Windows +``` + ## Global Upload Limits Global upload limits define the number of queued, daily, and weekly uploads on a _per user_ basis. These limits behave as defaults and are applied if limits for a user's group have not been set. -- cgit v1.2.3