diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-05-26 20:59:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-26 20:59:00 -0500 |
| commit | e2e8fb86f74fdbd1c39820a7ac3adc91d4a5c2a8 (patch) | |
| tree | a6d1ec0e9c8bcef57951924073a905329392ebdd /src/slskd/Files/Types | |
| parent | ff841bc6411be74e99b0b71754d23614a59c7187 (diff) | |
| parent | f7fefd065aec5ba3a9b4e679e36a5997924ec591 (diff) | |
| download | slskd-e2e8fb86f74fdbd1c39820a7ac3adc91d4a5c2a8.tar.gz | |
Merge pull request #1128 from slskd/file-perms
Add the ability to configure Unix file permissions to be applied to newly downloaded files
Diffstat (limited to 'src/slskd/Files/Types')
| -rw-r--r-- | src/slskd/Files/Types/CreateFileOptions.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/slskd/Files/Types/CreateFileOptions.cs b/src/slskd/Files/Types/CreateFileOptions.cs new file mode 100644 index 00000000..26d6e7d4 --- /dev/null +++ b/src/slskd/Files/Types/CreateFileOptions.cs @@ -0,0 +1,31 @@ +// <copyright file="CreateFileOptions.cs" company="slskd Team"> +// Copyright (c) slskd Team. All rights reserved. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see https://www.gnu.org/licenses/. +// </copyright> + +namespace slskd.Files; + +using System.IO; + +public record CreateFileOptions +{ + public FileAccess? Access { get; init; } + public int? BufferSize { get; init; } + public FileMode? Mode { get; init; } + public FileOptions? Options { get; init; } + public long? PreallocationSize { get; init; } + public FileShare? Share { get; init; } + public UnixFileMode? UnixCreateMode { get; init; } +}
\ No newline at end of file |
