# Vault 7: Projects

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

### Grasshopper

# Grasshopper-v1_1-AdminGuide

1 December, 2013

- 1
- 2
…
- 48
- 49
- 50
- 51
- 52
…
- 106
- 107

SECRET//ORCON//NOFORN
1.7 Empty
Description
The “empty” verb takes in no parameters and will return true only if the
directory contains no files or directories other than “.” and “..”.
Usage
directory(<directory path>).empty
Example
directory(“c:\windows”).empty
The above example checks to see if the “c:\windows” directory contains no
files or sub-directories.
Return Values
Return
Code
Description
True The directory exists, is readable, and has no files or
subdirectories
False The directory exists, is readable, and has files or
subdirectories
Invalid The directory doesn’t exist or is not readable
50
SECRET//ORCON//NOFORN

- 1
- 2
…
- 48
- 49
- 50
- 51
- 52
…
- 106
- 107