Last active
December 23, 2021 05:01
-
-
Save ridhotegar/7fef18f6b32fcc691ef4e04da9c91c88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkFolder (folder_name, found, notFound) { | |
document.addEventListener('deviceready', () => { | |
let path = cordova.file.documentsDirectory+"NoCloud/" | |
window.resolveLocalFileSystemURL(path, e => { | |
e.getDirectory(`${folder_name}`, {create: false}, found, notFound); | |
}, error => console.log(error)) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment