this repo has no description
www.jonmsterling.com/01HC/
1// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers
2//
3// SPDX-License-Identifier: MPL-2.0
4
5import Foundation
6import TSCBasic
7import llbuild2fx
8
9extension LLBDeclFileTree {
10 public static func file(absolutePath: AbsolutePath, contents: String) -> Self {
11 let components = absolutePath.components
12 let leaf = LLBDeclFileTree.file(contents)
13 return components.dropFirst().reversed().reduce(leaf) { tail, name in
14 .directory(files: [name: tail])
15 }
16 }
17}