blob: 2288d5292474b23705b5455f5e60e698a45f53f8 [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 SRC_MODULAR_LIB_PSEUDO_DIR_PSEUDO_DIR_UTILS_H_
#define SRC_MODULAR_LIB_PSEUDO_DIR_PSEUDO_DIR_UTILS_H_
#include <lib/vfs/cpp/pseudo_dir.h>
#include <lib/vfs/cpp/pseudo_file.h>
#include <memory>
#include <string>
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(std::string_view file_path,
std::string file_contents);
}; // namespace modular
#endif // SRC_MODULAR_LIB_PSEUDO_DIR_PSEUDO_DIR_UTILS_H_