# core/predicates/folder.predicate.ts

> 7 lines of code and 2 definitions.

Tree: Bane's Lab Site
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/tree#file-core-predicates-folder-predicate-ts
Source text: https://banes-lab.com/source/tree/core/predicates/folder.predicate.ts.txt

Listed in [core/predicates](https://banes-lab.com/api/source/tree/core/predicates.md), after [core/predicates/document.predicate.ts](https://banes-lab.com/source/tree/core/predicates/document.predicate.ts.md) and before [core/predicates/link.predicate.ts](https://banes-lab.com/source/tree/core/predicates/link.predicate.ts.md).

## Definitions

- `holdsFiles` (lexical_declaration, line 3, exported)
- `isPagedFile` (lexical_declaration, line 7, exported)

## Contained in

- [core/predicates](https://banes-lab.com/anatomy/tree/folder-core-predicates.md)

## Source

```typescript
import type { AnatomyFile, AnatomyFolder } from "#types/anatomy.types";

export const holdsFiles = function holdsFiles(folder: AnatomyFolder): boolean {
    return folder.files.length > 0 || folder.folders.some(holdsFiles);
};

export const isPagedFile = function isPagedFile(file: AnatomyFile): boolean {
    return file.excluded === undefined;
};
```
