Skip to content

Commit

Permalink
Update file_transfer.md (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurij-jukic authored Jun 20, 2024
1 parent d9ed27a commit 42380c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cookbook/file_transfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ E.g.,
cp -r file_transfer worker
```

and change the `worker/Cargo.toml` `name` to `worker`.
and you need to:
- change the `worker/Cargo.toml` `name` to `worker`,
- add `worker` into the `members` array in `Cargo.toml` in package root.

First, its worth noting that because when you spawn `worker` you give it `our_capabilities()` (i.e. it has the same capabilities as the parent process), the worker will have the ability to message both `"net:distro:sys"` and `"vfs:distro:sys"`.
Since `worker` is in the same package as `file_transfer`, it has the capability to open the `files` directory, see discussion on [VFS drives](../apis/vfs.md) for more details.
Expand Down

0 comments on commit 42380c5

Please sign in to comment.