file-paths-win32
Find paths of files matching file name on Windows
install
$ npm install --save file-paths-win32
api
returns
Promise is returned with
- resolve (array) [Array of file paths, empty if not found]
- reject (error)
arguments
- filename(s) (string || array)
- opts (object) optional
- hints (array - %HOMEPATH% unless file is EXE) [paths to search]
- full (boolean - false) [search all drives recursively]
usage
const filePaths = let fpOpts // search for single file in default paths // search for single EXE in default executable paths // search for array of files in default paths // search for single file in specific pathsfpOpts = hints: 'C:\\some\\path' 'C:\\some\\other\\path\\' // search for single file in all drives recursivelyfpOpts = full: true
License
MIT © Andrew Carpenter