We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
checkLastUpdateTime.ts•464 B
import { statSync } from 'node:fs';
/**
* Returns the last modification date of a file.
*
* @param filePath - Absolute or relative path to the file to inspect.
* @returns Date instance representing the file's last modified time (mtime).
* @throws Will propagate any error thrown by fs.statSync (e.g., file not found).
*/
export const checkLastUpdateTime = (filePath: string): Date => {
const stats = statSync(filePath);
return new Date(stats.mtime);
};