Skip to content

npm[7320]: src\fs_event_wrap.cc:90: Assertion `wrap != nullptr' failed. #20738

Closed
@phamVanLac

Description

  • Version: node 5.6.0
  • Platform:Windows 64-bit
  • Subsystem:

i had used rimraf to remove folder and use fs to remove file after download.
But when delete complete node have issue and i cant find the same on any where.
Thanks you very much.

clearFileAfterDownload (path) {

		if (fs.existsSync(path)) {

			rimraf(path, (err) => {

				if(err) {

					console.log(err);

				}

			});

		}

		if(fs.existsSync(path+'.zip')) {

			fs.unlinkSync(path+'.zip');

		}

}

(edited by @vsemozhetbyt: fix backticks for code block)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions