MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createFileEntry

Function createFileEntry

packages/core/src/tools/glob.test.ts:317–320  ·  view source on GitHub ↗
(fullpath: string, mtimeDate: Date)

Source from the content-addressed store, hash-verified

315 const oneDayInMs = 24 * 60 * 60 * 1000;
316
317 const createFileEntry = (fullpath: string, mtimeDate: Date): GlobPath => ({
318 fullpath: () => fullpath,
319 mtimeMs: mtimeDate.getTime(),
320 });
321
322 it('should sort a mix of recent and older files correctly', () => {
323 const recentTime1 = new Date(nowTimestamp - 1 * 60 * 60 * 1000); // 1 hour ago

Callers 1

glob.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected