Skip to content
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

IFolder.CheckExistsAsync - different behavior between Desktop and UWP #59

Open
mr-intj opened this issue Jun 9, 2017 · 2 comments
Open

Comments

@mr-intj
Copy link

mr-intj commented Jun 9, 2017

In UWP, the following code would return ExistenceCheckResult.NotFound.
In Desktop, LocalStorage is essentially ignored in the code below, and the result returned is ExistenceCheckResult.FileExists ...

var result = await FileSystem.Current.LocalStorage.CheckExistsAsync("e:\\dir1\\dir2\\file.xml");

The reason is due to the (documented) behavior of Path.Combine, which is used in the Desktop implementation of IFolder.CheckExistsAsync:

public static string Combine(string path1, string path2)

If path2 contains an absolute path, this method returns path2.

Can someone comment on whether this is intentional behavior or a bug in IFolder.CheckExistsAsync?

@xavier-rigau
Copy link

Same question here.

@devapalanisamy
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants