Mirror.cs incorrectly sets attributes on open
See original GitHub issueIn the mirror sample, around line 200 it has this:
if (mode == FileMode.CreateNew || mode == FileMode.Create) //Files are always created as Archive
attributes |= FileAttributes.Archive;
File.SetAttributes(filePath, attributes);
If you open an existing file with the readonly and/or archive bit set (eg open in Notepad), then attributes is Normal at the start of CreateFile and this line basically removes all attributes, clearing the readonly / archive flag on the file.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Having issue with Unity 3D Mirror API: Declaring a struct ...
I don't think I'm supposed to declare notification as a type struct, but even leaving it as a class doesn't yield the code...
Read more >Unity doesn't seem to get updates to mirror-inherited code
The issue is due to inheritance of a Mirror class while using one or more SyncVars.
Read more >Make Mirror robust to input data with incorrect `__typename`s
In the Mirror _initialize method, in the objects table declaration, remove the NOT NULL constraint from the typename column. · Add a CHECK ......
Read more >Manage Mirror Topics for Cluster Linking on ...
Create source and mirror topics in the Quick Start for Cluster Linking on ... To enable this functionality, you must set two properties...
Read more >Attribute position problem on mirrored blocks
Solved: Hi everyone, I have created a dynamic block with attributes in it. It works ok except for one thing. When I mirror...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That looks good. Thanks for your help.
Thanks for the comments. See the changes https://github.com/dokan-dev/dokan-dotnet/commit/28cbf81644cea9a265f5499e8d2fb33e0b8bd54a