From 198bbdcf941f8b13fa5c6e6985729bb410c0ef96 Mon Sep 17 00:00:00 2001 From: Glax Date: Sun, 27 Oct 2024 02:58:50 +0200 Subject: [PATCH] Set hidden Attribute to Markerfiles --- Tranga/Chapter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index 3bd2a9f..6e40c6b 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -120,6 +120,7 @@ public readonly struct Chapter : IComparable { string path = Path.Join(TrangaSettings.downloadLocation, parentManga.folderName, $".{id}"); File.WriteAllText(path, GetArchiveFilePath()); + File.SetAttributes(path, FileAttributes.Hidden); if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) File.SetUnixFileMode(path, UserRead | UserWrite | UserExecute | GroupRead | GroupWrite | GroupExecute | OtherRead | OtherExecute); }