"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.toRepositoryRelativePath = void 0;
exports.isExistingDirectory = isExistingDirectory;
exports.isExistingFile = isExistingFile;
const node_fs_1 = __importDefault(require("node:fs"));
const paths_1 = require("../paths");
Object.defineProperty(exports, "toRepositoryRelativePath", { enumerable: true, get: function () { return paths_1.toRepositoryRelativePath; } });
function isExistingDirectory(filePath) {
    try {
        return node_fs_1.default.statSync(filePath).isDirectory();
    }
    catch {
        return false;
    }
}
function isExistingFile(filePath) {
    try {
        return node_fs_1.default.statSync(filePath).isFile();
    }
    catch {
        return false;
    }
}
