mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Improve zipos path handling (#579)
This change adds opendir, readdir, and stat support for the /zip/ root, as well as directories not explicitly encoded in the zip file.
This commit is contained in:
parent
494d74271b
commit
1ef955c33b
5 changed files with 73 additions and 10 deletions
|
@ -64,6 +64,10 @@ TEST(stat, zipos) {
|
|||
stat("/zip/.python/test/"
|
||||
"tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt",
|
||||
&st));
|
||||
EXPECT_SYS(0, 0, stat("/zip", &st));
|
||||
EXPECT_SYS(0, 0, stat("/zip/", &st));
|
||||
EXPECT_SYS(0, 0, stat("/zip/.python", &st));
|
||||
EXPECT_SYS(0, 0, stat("/zip/.python/", &st));
|
||||
}
|
||||
|
||||
static long Stat(const char *path, struct stat *st) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue