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

fix: Android preferences root path on Windows #558

Merged
merged 15 commits into from
Nov 26, 2020
Prev Previous commit
Next Next commit
Add docstring
  • Loading branch information
jpkleemans committed Nov 25, 2020
commit 19322aafd9501a1240e84910de3a2911e6c36096
6 changes: 6 additions & 0 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,12 @@ async function getAndroidPrefsRoot () {
return location;
}

/**
* Check if a path exists on the filesystem and is a directory
*
* @param {?string} location The full path to the directory
* @returns {boolean}
*/
async function dirExists (location) {
return location
&& await fs.exists(location)
Expand Down