mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-20 19:55:57 +00:00
Dir exists separate fn
This commit is contained in:
7
lib/dirExists.mjs
Normal file
7
lib/dirExists.mjs
Normal file
@@ -0,0 +1,7 @@
|
||||
import { stat } from 'fs'
|
||||
|
||||
const dirExists = async storeDir => await new Promise(resolve => stat(storeDir, staterr => resolve(!staterr)))
|
||||
|
||||
export {
|
||||
dirExists,
|
||||
}
|
||||
Reference in New Issue
Block a user