Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs-extra.exists depreciated #32

Open
pcnate opened this issue Dec 1, 2020 · 0 comments
Open

fs-extra.exists depreciated #32

pcnate opened this issue Dec 1, 2020 · 0 comments

Comments

@pcnate
Copy link
Owner

pcnate commented Dec 1, 2020

Replace fs.exists on L77

async function waitForFile( file ) {
while( true ) {
const exists = await fs.exists( file );
if( exists ) return true;
await sleep( 333 );
}
}

fs-extra.exists

/**
Asynchronously tests whether or not the given path exists by checking with the file system.

@deprecated — since v1.0.0 Use fs.stat() or fs.access() instead

@param path
A path to a file or directory. If a URL is provided, it must use the file: protocol. URL support is experimental.
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant