UNPKG

extract-base-iterator

Version:

Base iterator for extract iterators like tar-iterator and zip-iterator

1 lines 570 B
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/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"}