# fs: Add support for restoring trashed files \(\#52014\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fd285c8ec73af9a71ad77b88f3bed08224808b1a

Requested commit: fd285c8ec73af9a71ad77b88f3bed08224808b1a

Commit: fd285c8ec73af9a71ad77b88f3bed08224808b1a

Tree: 3aca3d663cd8d7d59e470fa5b246e91a689ae1ad

Author: Dino

Committer: GitHub

## Message

```
fs: Add support for restoring trashed files (#52014)

Introduce a new `fs::Fs::restore` method which, given a
`fs::TrashedEntry` should attempt to restore the file or directory back
to its original path. 
```

## Parents

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

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