UNPKG

@produck/json-index-archive

Version:

8 lines (6 loc) 265 B
import { ROOT } from '../Abstract.mjs'; import * as Pathname from '../Pathname.mjs'; /** @param {import('../Constructor.mjs').FileSystem} self */ export default (self, pathname) => { return self[ROOT].find(...Pathname.parse(pathname)) === null ? false : true; };