mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 03:17:33 +01:00
Set hidden Attribute to Markerfiles
This commit is contained in:
parent
c58adf64fa
commit
198bbdcf94
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user