diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-10-31 13:23:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-31 13:23:01 -0400 |
| commit | e2e70c35399886164d0593f5c5ab73c52a0db4f0 (patch) | |
| tree | 20e44bb95e997def63d153e189c96cbe4fa095cd /Emby.Common.Implementations/IO/ManagedFileSystem.cs | |
| parent | b2c7f3a1d316c3d9f207da6251fa05edae1869af (diff) | |
| parent | 8b7a8ab3963b1a55bc194767cc834c8cf43836a7 (diff) | |
Merge pull request #2262 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Common.Implementations/IO/ManagedFileSystem.cs')
| -rw-r--r-- | Emby.Common.Implementations/IO/ManagedFileSystem.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Emby.Common.Implementations/IO/ManagedFileSystem.cs b/Emby.Common.Implementations/IO/ManagedFileSystem.cs index 6317fc08b..bfc316d3f 100644 --- a/Emby.Common.Implementations/IO/ManagedFileSystem.cs +++ b/Emby.Common.Implementations/IO/ManagedFileSystem.cs @@ -408,13 +408,13 @@ namespace Emby.Common.Implementations.IO { if (isHidden) { - FileAttributes attributes = File.GetAttributes(path); - attributes = RemoveAttribute(attributes, FileAttributes.Hidden); - File.SetAttributes(path, attributes); + File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden); } else { - File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden); + FileAttributes attributes = File.GetAttributes(path); + attributes = RemoveAttribute(attributes, FileAttributes.Hidden); + File.SetAttributes(path, attributes); } } } |
