Opened 9 years ago
Closed 9 years ago
#5757 closed defect (duplicate)
VSIArchiveFilesystemHandler::Stat() setting st_mode to S_IFREG has consequences for higher level functions
Reported by: | hchen | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
VSIArchiveFilesystemHandler::Stat() in port/cpl_vsil_abstract_archive.cpp will set the st_mode of an archive to S_IFREG if it only contains one file. This affects other functions (e.g. os.path.isdir() in Python will return false for a zip accessed using the /vsizip/ virtual file system if it only contains one file). Is this the intended behaviour?
Note:
See TracTickets
for help on using tickets.