mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2024-11-27 13:50:27 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
1b945253b6
@ -85,7 +85,7 @@ async function readConfigFile() {
|
||||
|
||||
if (!dirs.find((fileOrDir) => fileOrDir?.name === 'cultivation')) {
|
||||
// Create dir
|
||||
await fs.createDir(local + 'cultivation')
|
||||
await fs.createDir(local + 'cultivation').catch(e => console.log(e))
|
||||
}
|
||||
|
||||
const innerDirs = await fs.readDir(local + '\\cultivation')
|
||||
@ -93,7 +93,7 @@ async function readConfigFile() {
|
||||
// Create grasscutter dir for potential installation
|
||||
if (!innerDirs.find((fileOrDir) => fileOrDir?.name === 'grasscutter')) {
|
||||
// Create dir
|
||||
await fs.createDir(local + 'cultivation\\grasscutter')
|
||||
await fs.createDir(local + 'cultivation\\grasscutter').catch(e => console.log(e))
|
||||
}
|
||||
|
||||
const dataFiles = await fs.readDir(local + 'cultivation')
|
||||
|
Loading…
Reference in New Issue
Block a user