mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -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() )
|
||||
|
||||
|
||||
axios({
|
||||
await axios({
|
||||
method: "get",
|
||||
url: apiUrl.toString(),
|
||||
responseType: "stream"
|
||||
}).then(function (response) {
|
||||
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