3.2.36.10

This commit is contained in:
Luke Pulverenti
2017-11-15 16:33:04 -05:00
parent 2f758676d0
commit 9f46122d91
6 changed files with 125 additions and 26 deletions

View File

@@ -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);
}
}