Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bilibili/http-service
/ copy
Function
copy
scripts/copy.util.ts:3–10 ·
view source on GitHub ↗
(sourceFolder, targetFolder)
Source
from the content-addressed store, hash-verified
1
import
ncp from
'ncp'
2
3
export
const
copy = (sourceFolder, targetFolder) =>
new
Promise((res, rej) => {
4
ncp(sourceFolder, targetFolder,
function
(err) {
5
if
(err) {
6
return
rej(err)
7
}
8
res(true)
9
});
10
})
Callers
1
create.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected