-
Notifications
You must be signed in to change notification settings - Fork 1k
fs.copyFile()
does not work with /snapshot
paths
#639
Comments
Until vercel/pkg#639 is resolved, we have to implement the `copy()` operation without relying on `fs.copyFile()`.
I encounter same issue when use |
We have the same issue for the |
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label |
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit. |
ops! This issue does't resolve yet |
@TooTallNate Is there an update on this issue or any workaround? I am still facing this in pkg v5.2.1 |
The same thing happens when using chmod function as well. It says:
I checked the path using exists function and it returned true that file does exist. But in chmod the same path fails as ENOENT
Output of above lines:
|
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label |
bump |
It could be because, like for other fs methods, it should be overriden: https://github.com/vercel/pkg/blob/main/prelude/bootstrap.js#L975 And defined here: https://github.com/vercel/pkg/blob/main/prelude/bootstrap.js#L502 |
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label |
. |
@jingsam PR? |
The workaround
|
@jingsam ^ |
I already opened a pr to fix this: #1484 |
dupe of #420. |
https://nodejs.org/api/fs.html#fs_fs_copyfile_src_dest_flags_callback
Example error:
The text was updated successfully, but these errors were encountered: