UNPKG

react-native-acoustic-connect-beta

Version:
19 lines (15 loc) 293 B
const fs = require('fs'); function isValid(path){ let valid = false try { if (fs.existsSync(path)) { valid = true } else { valid = false } } catch(e) { valid = false } return valid } module.exports = {isValid};