dist / media / shared.js
"use strict";
/**
* @file shared.ts
* Shared constants and helpers for media tools.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSafePath = isSafePath;
/** System-sensitive path prefixes that should be blocked from media analysis. */
const BLOCKED_PREFIXES = ["/etc", "/var", "/usr", "/System", "/Library", "/private"];
/** Returns false for system-sensitive paths that should not be analyzed. */
function isSafePath(p) {
return !BLOCKED_PREFIXES.some(prefix => p.startsWith(prefix));
}
//# sourceMappingURL=shared.js.map