appwrite-utils-cli
Version:
Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.
23 lines (22 loc) • 827 B
TypeScript
/**
* Directory utility functions for filtering and managing directory traversal
*/
/**
* List of directories that should be ignored during recursive searches
* Includes common build outputs, dependencies, caches, and system folders
*/
export declare const IGNORED_DIRECTORIES: string[];
/**
* Determines if a directory should be ignored during recursive file operations
*
* @param dirName - The name of the directory to check
* @returns true if the directory should be ignored, false otherwise
*
* @remarks
* A directory is ignored if:
* - It matches one of the entries in IGNORED_DIRECTORIES
* - It starts with '.git' prefix
* - It starts with 'node_modules' prefix
* - It starts with '.' (hidden directory) except for '.appwrite'
*/
export declare const shouldIgnoreDirectory: (dirName: string) => boolean;