aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-05-11 19:13:18 -0500
committerJP Dillingham <jp@dillingham.me>2024-05-11 19:13:18 -0500
commit7fe5b89ad8a211d0e1be1bd10a477ad9f7db51f2 (patch)
treef6383fac40cbc46c91beb9a4b27e4bacbf8f8500
parent3ddbba90fbbe67e2ca6f2d58a09c578efefa8f3d (diff)
downloadslskd-7fe5b89ad8a211d0e1be1bd10a477ad9f7db51f2.tar.gz
add CreateFileOptions
-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