blob: 7701bf081a2d111d8c1c6639f0cc392719c6fe67 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PERIDOT_LIB_UTIL_PSEUDO_DIR_UTILS_H_
#define PERIDOT_LIB_UTIL_PSEUDO_DIR_UTILS_H_
#include <memory>
#include <string>
#include <lib/vfs/cpp/pseudo_dir.h>
#include <lib/vfs/cpp/pseudo_file.h>
namespace modular {
// Recursively constructs the path |file_path| with contents |file_contents|.
// |file_path| must be a well-formed path that ends with a file name.
std::unique_ptr<vfs::PseudoDir> MakeFilePathWithContents(const std::string& file_path,
const std::string& file_contents);
}; // namespace modular
#endif // PERIDOT_LIB_UTIL_PSEUDO_DIR_UTILS_H_