Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
System.IO.File.Exists and System.IO.Directory.Exists don't behave as expected on UWP #25
Basically, line #62 in StorageFile.cs
I have a fork that simply removes the System.IO.File/Directory.Exists call and rely only on the Windows.Storage API to gaurantee that a Windows.Storage.StorageFile/StorageFolder can only be created ( != null) if the file/folder exists. This seems to be the case, and the intent of this API.
This is what I changed it to, and it seems to work in my testing:
Here's my PR.
Here's the original issue that lead to this.