Hi there,
I have a very weird problem I just can’t wrap my head around and not even sure where to ask this.
Basically I’m writing a converter for models to the .3mf file format.
.3mf files are renamed .zip files that have a fixed folder structure and use .xml for their internal data.
I use the official 3mf examples unpacked for testing my code and here is the problem:
When I have all the files and folder-structure ready and try to pack them into an archive I run into errors:
If I use the windows UI to select the files and rightclick → ‘send to zip archive’ everything works correctly.
If I use c# ZipFile or sharpziplib to zip the files - the .3mf throws an error.
If I use tar.exe to zip the files the Windows 3D-viewer throws an error but other CAD programs can open the file.
the file is in the archive and is in the right place but for some reason wont be found by the interpreter.
Is there someone that can point me in the right direction?
Maybe zip files have different ways to store path information that is not visible to me as the user?
as a followup here I have two examples whch to me look pretty much identical.
One made by using the windows UI, the other one with tar.
One throws the ‘missing file’-error in the hp validator, the other one doesn’t. invalid.zip (1.0 KB) valid.zip (1.0 KB)
/ is the path separator on Unix and Unix-like systems. Modern Windows can generally use both \ and / interchangeably for filepaths, but Microsoft has advocated for the use of \ as the path separator for decades.