ndexr
Indexes directories and outputs to JSON
...Could be used to observe activity in a server directory, to generate JSON to send to clients searching remotely, or to keep an index of files in a directory when the user of that directory does not have permission to probe the files system for files without knowing their names. Uses a configuration file, or optionally you can pass configuration information as keyword arguments.
Also see recursive example.