petrbroz / svf-utils

Utilities for working with the SVF file format used by Autodesk Platform Services.
https://petrbroz.github.io/svf-utils/
MIT License
123 stars 53 forks source link

Conversion Failed With Error Code : -4058 #46

Open javidshaikhf opened 2 years ago

javidshaikhf commented 2 years ago

Hello, I have been trying to convert the files and got this error.

image

@petrbroz Can you please help me out.

petrbroz commented 2 years ago

Thank you for the heads up. I'm guessing the error is coming from https://github.com/petrbroz/forge-convert-utils/blob/develop/bin/forge-convert.js#L85, possibly because the sqlite database is being downloaded into a folder that doesn't exist.

We could simply add something like fse.ensureDirSync(sqliteFolder); to make sure that the new folder is created but I'd like to understand what kind of new path is being used there, and why. Could you please share the part of the path that you actually hid in the screenshot?