# Introduce LocalFile trait · gitcafe/zed

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

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

Visibility: public

Requested revision: 66fce5ec8e129e574f658db19a1791d1781ec020

Requested commit: 66fce5ec8e129e574f658db19a1791d1781ec020

Commit: 66fce5ec8e129e574f658db19a1791d1781ec020

Tree: c9f1b822b56759633b06079df898ed3c68261724

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Introduce LocalFile trait

If you want to call `abs_path` or `load`, the file needs to be local. You call `as_local` which returns `Option<dyn LocalFile>` with those local-only methods. I think this makes it more explicit what works only locally vs everywhere.

```

## Parents

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

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