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?

Change History (1)

comment:1 by hchen, 9 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.