mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-21 06:54:08 -07:00
Wait for and confirrm toml file
This commit is contained in:
parent
225c27a8fc
commit
571ac6d782
1 changed files with 6 additions and 1 deletions
|
|
@ -18,11 +18,16 @@ export async function downloadStorkToml () {
|
||||||
// await axios( apiUrl.toString() )
|
// await axios( apiUrl.toString() )
|
||||||
|
|
||||||
|
|
||||||
axios({
|
await axios({
|
||||||
method: "get",
|
method: "get",
|
||||||
url: apiUrl.toString(),
|
url: apiUrl.toString(),
|
||||||
responseType: "stream"
|
responseType: "stream"
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
response.data.pipe(fs.createWriteStream( storkTomlPath ))
|
response.data.pipe(fs.createWriteStream( storkTomlPath ))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Get toml file stats
|
||||||
|
const stats = await fs.stat( storkTomlPath )
|
||||||
|
console.log('TOML Stats', storkTomlPath, stats)
|
||||||
|
// console.log('TOML Stats', stats)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue