vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function rtGetInputs

Runtime equivalent of collectFiles. This version uses std.file to read files from the appropriate directory. Note that for collectFiles, the directory to use is passed on the command line, whereas in this case, we must receive the directory containing the files from the caller.

InputFile[] rtGetInputs (
  string file,
  scope string[] source_directories...
) @safe;

Parameters

NameDescription
file The root file that will be used to find all referenced files.
source_directories Optional base directory list from which all files will be searched.

Returns

An array of InputFile structs containing the list of files that are referenced from the root file, and their contents.

Authors
Copyright
License