UNPKG

react-native-acoustic-connect-beta

Version:

BETA: React native plugin for Acoustic Connect

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};