/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { normalize } from '@angular-devkit/core';
import { relative } from 'path/posix';
export class SchematicsFileSystem {
    tree;
    basePath = normalize(process.cwd());
    constructor(tree) {
        this.tree = tree;
    }
    readText = (path) => {
        return this.tree.readText(normalize(relative(this.basePath, path)));
    };
    exists = (path) => {
        return this.tree.exists(normalize(relative(this.basePath, path)));
    };
    getDir = (path) => {
        return this.tree.getDir(normalize(relative(this.basePath, path)));
    };
}
