FileSet FileSet::FromManifestsInDir(const boost::filesystem::path &path) { FileSet ret; directory_iterator end_iter; for (directory_iterator iter(path); iter != end_iter; ++iter) if (!is_directory(iter->status()) && iter->path().stem() == "MANIFEST") ret.ParseAndAddEntries(read_file(iter->path())); return ret; }
FileSet FileSet::FromContents(const std::string &contents) { FileSet ret; return ret.ParseAndAddEntries(contents); }