Closed NotSpaulding closed 1 year ago
Hm, that's strange. If you create the directory manually instead of using ensureDir
, do you get the same error?
No, creating the directory myself (or re-running the script because the directory gets made either way) does not produce any errors.
OK, just realized I was misreading your code a little; why does your script have to create this directory in the first place? You should be able to just copy to that location without ensureDir
.
Also, what's the stack trace of the error? I'm curious where it's being thrown from in the fs-extra
code.
After looking a bit more into this I figured out it was some other part of the code that I didn't even realize was getting called.
Thanks for pointing out I don't need ensureDir
to be called though.
My apologies for any confusion caused.
Not a problem; glad you got it figured out.
fs-extra
version: 11.1.1I have the following code:
which for some reason throws the following error:
I have also tried the following without any luck:
but unfortunately it returns the same error.
How can I fix this error? Am I missing something?
Notes
The actual paths are different, just using those for demonstration purposes, hopefully that doesn't have an effect on this.