# ftp proc

Source: https://ref.dm-lang.org/proc/ftp

### Format
> `target << ftp(File, Name)`

Sends a file to the target with the (optional) suggested name for saving to disk. The file may be a cache file (loaded at compile time) or an external file (accessed at run-time). Cache files are specified in single quotes, and external files are in double quotes.

This function could be used to distribute source code, supplementary documentation, or anything.

```dm /ftp/
mob/verb/geticon(O in view())
  usr << ftp(O:icon)
```

This example allows the user to download the icons from other objects in the game.

### See also
- [\<\< output operator](https://ref.dm-lang.org/operator/lessless/output.md)
- [browse proc](https://ref.dm-lang.org/proc/browse.md)
- [file proc](https://ref.dm-lang.org/proc/file.md)
- [link proc](https://ref.dm-lang.org/proc/link.md)
- [run proc](https://ref.dm-lang.org/proc/run.md)
- [sound proc](https://ref.dm-lang.org/proc/sound.md)
