"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = require("fs");
const path_1 = require("path");
class PackedFile {
    path;
    dir;
    name;
    get isEmpty() {
        if (!(0, fs_1.existsSync)(this.path)) {
            return true;
        }
        const s = (0, fs_1.statSync)(this.path);
        return s.size === 0;
    }
    constructor(path) {
        this.path = path;
        this.dir = (0, path_1.dirname)(path);
        const p = (0, path_1.parse)(path);
        this.name = p.base;
    }
}
exports.default = PackedFile;
//# sourceMappingURL=PackedFile.js.map