# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Grasshopper

# Grasshopper-v2_0-UserGuide

- 1
- 2
…
- 87
- 88
- 89
- 90
- 91
…
- 133
- 134

SECRET//NOFORN
3.7 Contains
The “contains” verb states that a directory contains a file or directory of a given
name.
A depth is provided to perform a recursive search on subdirectories. A depth of 0
will not search any subdirectories, a depth of 1 will search the first level of
subdirectories, etc.
Usage
directory(<dir_path>).contains(<file_name>, <depth>)
dir_path
Path to directory on target file system
file_name
Name of file or directory within directory
depth
Recursive search depth
Truth Table
TRUE
dir_path contains a file or directory file_name within depth levels
FALSE
dir_path does not contain a file or directory file_name within depth
levels
INVALID
Encountered error during search; file was not otherwise found
89
SECRET//NOFORN

- 1
- 2
…
- 87
- 88
- 89
- 90
- 91
…
- 133
- 134