mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
ignore not existing folder on removing
This commit is contained in:
parent
280595bb7c
commit
c86029cbff
@ -87,7 +87,7 @@ function prepareFolder(communityContext: CommunityContext): string {
|
|||||||
)
|
)
|
||||||
const binFilePath = path.join(binFileFolder, 'blk00000001.dat')
|
const binFilePath = path.join(binFileFolder, 'blk00000001.dat')
|
||||||
// make sure we work with a clean folder, rm beforehand with all content
|
// make sure we work with a clean folder, rm beforehand with all content
|
||||||
fs.rmSync(binFileFolder, { recursive: true })
|
fs.rmSync(binFileFolder, { force: true, recursive: true })
|
||||||
fs.mkdirSync(binFileFolder, { recursive: true })
|
fs.mkdirSync(binFileFolder, { recursive: true })
|
||||||
return binFilePath
|
return binFilePath
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user