Wait for and confirrm toml file

This commit is contained in:
Sam Carlton 2022-05-10 12:06:09 -05:00
parent 225c27a8fc
commit 571ac6d782

View file

@ -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)
}