mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
3.2.36.10
This commit is contained in:
@@ -226,7 +226,19 @@ namespace MediaBrowser.LocalMetadata.Savers
|
||||
|
||||
if (wasHidden || ConfigurationManager.Configuration.SaveMetadataHidden)
|
||||
{
|
||||
FileSystem.SetHidden(path, true);
|
||||
SetHidden(path, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetHidden(string path, bool hidden)
|
||||
{
|
||||
try
|
||||
{
|
||||
FileSystem.SetHidden(path, hidden);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Error("Error setting hidden attribute on {0} - {1}", path, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user