Check if toml is file

This commit is contained in:
Sam Carlton 2022-05-10 12:18:55 -05:00
parent 01e8db4a78
commit cfb442324c

View file

@ -14,11 +14,6 @@ export async function downloadStorkToml () {
apiUrl.pathname = storkTomlPath.replace('/static', '') apiUrl.pathname = storkTomlPath.replace('/static', '')
console.log('apiUrl', apiUrl)
// await axios( apiUrl.toString() )
const response = await axios({ const response = await axios({
method: "get", method: "get",
url: apiUrl.toString(), url: apiUrl.toString(),
@ -28,6 +23,6 @@ export async function downloadStorkToml () {
// Get toml file stats // Get toml file stats
const stats = await fs.stat( storkTomlPath ) const stats = await fs.stat( storkTomlPath )
console.log('TOML Stats', storkTomlPath, stats) console.log('TOML is file', storkTomlPath, stats.isFile())
// console.log('TOML Stats', stats) // console.log('TOML Stats', stats)
} }