Scoop API

scoop:scoop.core:0.1.0

includeDir

function includeDir

source · line 20
public
@Intrinsic("include_dir")
public fun includeDir(path: String, include: Array<String> = ["**"], exclude: Array<String> = []): EmbeddedDir

Embeds selected files from a directory inside the defining Cone. The constant path is relative to this call's source directory. Every entry and resolved symlink target must stay inside the Cone, even when excluded. Include and exclude are array literals of constant String patterns. Include patterns form a union; exclude patterns remove matches. Matching uses full, case-sensitive relative paths with '/' separators. '*' stays in a component; '**' spans zero or more directory levels, including the root directory. Defaults include all files, including hidden files; no gitignore is applied. Files are ordered by relative path in UTF-8 byte order. Empty directories are omitted. This compile-time intrinsic cannot be used as a function reference.