mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 18:53:27 +01:00
update setting of file attributes
This commit is contained in:
@@ -218,13 +218,9 @@ namespace MediaBrowser.LocalMetadata.Savers
|
||||
{
|
||||
if (file.IsHidden)
|
||||
{
|
||||
FileSystem.SetHidden(path, false);
|
||||
wasHidden = true;
|
||||
}
|
||||
if (file.IsReadOnly)
|
||||
{
|
||||
FileSystem.SetReadOnly(path, false);
|
||||
}
|
||||
FileSystem.SetAttributes(path, false, false);
|
||||
}
|
||||
|
||||
using (var filestream = FileSystem.GetFileStream(path, FileOpenMode.Create, FileAccessMode.Write, FileShareMode.Read))
|
||||
|
||||
Reference in New Issue
Block a user