Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import * as fs from 'fs';
import * as path from 'path';
/**
* Returns whether the given folder path contains any items
**/
export function hasItems(folderPath: string): boolean {
const resolvedPath = path.resolve(folderPath);
if (!fs.existsSync(resolvedPath)) {
return false;
}
return fs.readdirSync(resolvedPath).length > 0;
}