-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for FileShare when opening a file #9
Comments
There is actually a way to support |
Something I wasn't aware of is that Imo, this destroys the whole idea of adding Ultimately, the goal of Files is to provide a file system implementation which is both easy to use and predictable. The latter would not be fulfilled by adding To any readers: Feel free to comment on the situation/if you feel that |
Last note: I will keep the implementation of #11 in the branch |
New Feature Proposal
Description
Most file systems support the concept of .NET's
FileShare
enumeration, meaning that an opened file can be accessed by 1:N other streams. Currently, Files defaults to theFileShare.None
value in the implementations because UWP doesn't supportFileShare
. Nontheless, it would be awesome to have support for it, e.g. for lock files.Discussion
The reason why it's not here yet is UWP which doesn't support
FileShare
. Of course, UWP should not be a blocker for important APIs. We could go the same route as with theFileAttribute
s and simply take theFileShare
as a suggestion. This means that Files doesn't guarantee that theFileShare
is used (and therefore doesn't, for example, add it to the specification tests). This could obviously be confusing from time to time, so who knows it it's a good idea.As a supporting point for this behavior,
FileShare.Inheritable
is not supported by Win32, so there's similar behavior.The text was updated successfully, but these errors were encountered: