# fetch: use package root detection pipeToFileSystem · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8545cb014795b4137d1ad92c62d08014723abf9f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8545cb014795b4137d1ad92c62d08014723abf9f

Requested commit: 8545cb014795b4137d1ad92c62d08014723abf9f

Commit: 8545cb014795b4137d1ad92c62d08014723abf9f

Tree: 49eec6b863d887a3f19054956a86f082e2817f37

Author: Igor Anić

Committer: Igor Anić

## Message

```
fetch: use package root detection pipeToFileSystem

Based on:
https://github.com/ziglang/zig/pull/19111#discussion_r1548620985

In pipeToFileSystem we are already iterating over all files in tarball.
Inspecting them there for existence of single root folder saves two
syscalls later.

```

## Parents

- [363acf49910bbc0ff2b8acecea027f3f17bbce25](https://git.cafe/gitcafe/zig/commit/363acf49910bbc0ff2b8acecea027f3f17bbce25?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8545cb014795b4137d1ad92c62d08014723abf9f?format=markdown)
