mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Await async mkdirp
This commit is contained in:
committed by
Max Brunsfeld
parent
f17add20c1
commit
305bf9b4cb
@@ -147,7 +147,7 @@ async function tryStatFile (path) {
|
||||
}
|
||||
|
||||
async function copyFile (source, destination, mode) {
|
||||
mkdirp.sync(Path.dirname(destination))
|
||||
await mkdirp(Path.dirname(destination))
|
||||
return new Promise((resolve, reject) => {
|
||||
const readStream = fs.createReadStream(source)
|
||||
readStream
|
||||
|
||||
Reference in New Issue
Block a user