leezu edited a comment on issue #20405:
URL: 
https://github.com/apache/incubator-mxnet/issues/20405#issuecomment-871376367


   npz format is based on the zip file standard. In zip files, filenames 
beginning with a `/` are not allowed.
   
   >    4.4.17 file name: (Variable)
   > 
   >        4.4.17.1 The name of the file, with optional relative path.
   >        The path stored MUST NOT contain a drive or
   >        device letter, or a leading slash.  All slashes
   >        MUST be forward slashes '/' as opposed to
   >        backwards slashes '\' for compatibility with Amiga
   >        and UNIX file systems etc.  If input came from standard
   >        input, there is no file name field.  
   https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
   
   For reference, we're below zip implementation which, unlike Python / Numpy, 
enforces the filename requirements.
   
   
https://github.com/richgel999/miniz/blob/2281a42c77a08188a57609c8950b447ec62d6fb8/miniz_zip.c#L3109-L3113
   
   Unfortunately this looks like a bug in numpy. We can consider following 
numpy here in writing non-standard zip files, but that's not supported by our 
current zip implementation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to