Skip to content

Cleanup fails #52

Closed
Closed
@oliversalzburg

Description

@oliversalzburg

When I use the default parameters, and then call the cleanup callback when I'm done, I get the following error:

  1)  "after all" hook:
     Error: ENOTEMPTY, directory not empty 'C:\Users\Oliver\AppData\Local\Temp\tmp-17520mURkNFVU7XQ6'
      at Object.fs.rmdirSync (fs.js:624:18)
      at C:\Users\Oliver\prj\cli\test\prepare.js:39:3
      at Array.forEach (native)
      at Context.<anonymous> (C:\Users\Oliver\prj\cli\test\prepare.js:38:13)

I'm copying temporary files to that directory, so this wasn't surprising. I then set unsafeCleanup to true and now I get this result:

  1)  "after all" hook:
     Error: ENOENT, no such file or directory 'C:\Users\Oliver\AppData\Local\Temp\tmp-396iEctJyHwBoYu\corePath'
      at Object.fs.readdirSync (fs.js:666:18)
      at C:\Users\Oliver\prj\cli\test\prepare.js:39:3
      at Array.forEach (native)
      at Context.<anonymous> (C:\Users\Oliver\prj\cli\test\prepare.js:38:13)

The weirdest part is, the temporary directory is actually deleted just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions