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

1 lines 562 B
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/zip-iterator/src/lib/waitForAccess.mjs"],"sourcesContent":["import fs from 'fs';\n\nexport default function waitForAccess(fullPath, callback) {\n fs.stat(fullPath, (err) => {\n if (err) return waitForAccess(fullPath, callback);\n callback();\n });\n}\n"],"names":["waitForAccess","fullPath","callback","fs","stat","err"],"mappings":";;;;+BAEA;;;eAAwBA;;;yDAFT;;;;;;AAEA,SAASA,cAAcC,QAAQ,EAAEC,QAAQ;IACtDC,WAAE,CAACC,IAAI,CAACH,UAAU,SAACI;QACjB,IAAIA,KAAK,OAAOL,cAAcC,UAAUC;QACxCA;IACF;AACF"}