Error thrown upon Export Scene overwriting an existing .vtkjs file
When exporting a scene to .vtkjs
while overwriting an already existing file, the following error is thrown:
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\IO\Export\vtkJSONSceneExporter.cxx, line 547
vtkPVWebExporter (000001773FD4BEE0): Can not create directory C:\Users\David\Documents\Projects\data\export.vtkjs
Generic Warning: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\Remoting\Export\vtkPVWebExporter.cxx, line 71
Failed to rename datasets using ParaView proxy name
Traceback (most recent call last):
File "C:\Program Files\ParaView\5.10.0-Py3.9\bin\Lib\site-packages\paraview\web\vtkjs_helper.py", line 81, in applyParaViewNaming
with open(filePath) as file:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\David\\Documents\\Projects\\data\\export.vtkjs\\index.json'
Tested on Windows 10 and Linux with ParaView 5.10.0.
It seems that the exporter should first attempt to remove the existing file before writing it?