# FILE_DIR definition

Source: https://ref.dm-lang.org/DM/preprocessor/define/FILE_DIR

### Format
> `#define FILE_DIR Path`

### Args
> Path: A search path on the current filesystem.

This macro defines a search path to be used in evaluating resource files (icons and sounds). First the current directory is searched, then the first `FILE_DIR` path, then the next, etc.

```dm
#define FILE_DIR icons
#define FILE_DIR icons/mobs

mob/clown
  icon = 'clown.dmi'
```

This searches for the file at the paths `"./clown.dmi"`, `"./icons/clown.dmi"`, and `"./icons/sounds/clown.dmi"`, where `"."` is the directory of the current source file.

### See also
- [cache](https://ref.dm-lang.org/DM/cache.md)
- [icons](https://ref.dm-lang.org/DM/icon/index.md)
