# Keep file permissions when extracting zip archives on Unix \(\#31304\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7341ab398013994e2ebeb9cfbee52b199fcbc16e)

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

Visibility: public

Requested revision: 7341ab398013994e2ebeb9cfbee52b199fcbc16e

Requested commit: 7341ab398013994e2ebeb9cfbee52b199fcbc16e

Commit: 7341ab398013994e2ebeb9cfbee52b199fcbc16e

Tree: 624d8915f231259c1ba7d0541c1675388b5ba9a5

Author: Kirill Bulatov

Committer: GitHub

## Message

````
Keep file permissions when extracting zip archives on Unix (#31304)

Follow-up of https://github.com/zed-industries/zed/pull/31080

Stop doing

```rs
#[cfg(not(windows))]
{
    file.set_permissions(<fs::Permissions as fs::unix::PermissionsExt>::from_mode(
        0o755,
    ))
    .await?;
}
```

after extracting zip archives on Unix, and use an API that provides the
file permissions data for each archive entry.

Release Notes:

- N/A
````

## Parents

- [ca72efe7010439a2b4c082e8fc554a486d97aae7](https://git.cafe/gitcafe/zed/commit/ca72efe7010439a2b4c082e8fc554a486d97aae7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7341ab398013994e2ebeb9cfbee52b199fcbc16e?format=markdown)
