UNPKG

zip-iterator

Version:

Extract contents from zip archive type using an iterator API using streams or paths. Use stream interface and pipe transforms to add decompression algorithms

8 lines (7 loc) 201 B
import fs from 'fs'; export default function waitForAccess(fullPath, callback) { fs.stat(fullPath, (err)=>{ if (err) return waitForAccess(fullPath, callback); callback(); }); }