aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Files/Types
diff options
context:
space:
mode:
authorArtur <5359825+sethidden@users.noreply.github.com>2024-05-30 09:27:41 +0000
committerGitHub <noreply@github.com>2024-05-30 09:27:41 +0000
commita783e181982dd8c435bb51345a8528a65a4304ac (patch)
tree236c9b7bc40ca09cf3f40878a9beb1dea292a20d /src/slskd/Files/Types
parent02bf77158d3bf3dcb6919a9bd0637bf040644c26 (diff)
parentb33449b0282d7f466be22570c26e9e3c982b888a (diff)
downloadslskd-a783e181982dd8c435bb51345a8528a65a4304ac.tar.gz
Merge branch 'slskd:master' into master
Diffstat (limited to 'src/slskd/Files/Types')
-rw-r--r--src/slskd/Files/Types/CreateFileOptions.cs31
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