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

CheckExistsAsync documentation #44

Open
reader-man opened this issue Jun 18, 2016 · 1 comment
Open

CheckExistsAsync documentation #44

reader-man opened this issue Jun 18, 2016 · 1 comment

Comments

@reader-man
Copy link

Hi,
Thanks for the great project.
the "CheckExistsAsync" function does not clearly mention that it checks for a folder relative to :

FileSystem.Current.LocalStorage

e.g.

            var rootFolder = FileSystem.Current.LocalStorage;
            var exist = await rootFolder.CheckExistsAsync("DB");

and that it will not work if i give it:

            var rootFolder = FileSystem.Current.LocalStorage;

            var dbPath = PortablePath.Combine(rootFolder.Path, "DB");

            var exist = await rootFolder.CheckExistsAsync(dbPath);

as the "dbPath" is going to have a full path.

which gives a lot of headache before discovering it, at least it did for me.
Wither that, or allow the "CheckExistsAsync" to work with the passed full path if its path contained in the passed one.

@JKennedy24
Copy link
Contributor

this also tripped me up. seems to be difference on different platforms from what I found

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

2 participants