"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.creationTime = void 0;
// require fs module
const fs = require("fs");
// Delete a directory and its children 
const creationTime = (sourcePath) => {
    if (fs.existsSync(sourcePath)) {
        try {
            const { birthtime } = fs.statSync(sourcePath);
            return birthtime;
        }
        catch (error) {
            console.log(`There was an error on trying get de file/directory creation info from ${sourcePath}: `, error);
        }
    }
    return;
};
exports.creationTime = creationTime;
