Set hidden Attribute to Markerfiles

This commit is contained in:
Glax 2024-10-27 02:58:50 +02:00
parent c58adf64fa
commit 198bbdcf94

View File

@ -120,6 +120,7 @@ public readonly struct Chapter : IComparable
{ {
string path = Path.Join(TrangaSettings.downloadLocation, parentManga.folderName, $".{id}"); string path = Path.Join(TrangaSettings.downloadLocation, parentManga.folderName, $".{id}");
File.WriteAllText(path, GetArchiveFilePath()); File.WriteAllText(path, GetArchiveFilePath());
File.SetAttributes(path, FileAttributes.Hidden);
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
File.SetUnixFileMode(path, UserRead | UserWrite | UserExecute | GroupRead | GroupWrite | GroupExecute | OtherRead | OtherExecute); File.SetUnixFileMode(path, UserRead | UserWrite | UserExecute | GroupRead | GroupWrite | GroupExecute | OtherRead | OtherExecute);
} }