Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

345 B
Raw Blame
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;
}