From b1b2dfb64ed9b0c77130ec1cdbb714aa9076bab9 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 2 Dec 2024 22:31:28 -0800 Subject: [PATCH] Changed documentation for glob paths. --- docs/types.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/types.md b/docs/types.md index 46e701fe..c60057b1 100644 --- a/docs/types.md +++ b/docs/types.md @@ -784,10 +784,9 @@ All types of FileSpecs share some common fields: ### FileSpec -- Path A FileSpec with `type` equal to `path` points to an absolute or relative path accessible from the current machine. -The path may also include a glob pattern to target multiple files or directories. -For paths that match multiple dirents, the dirents will be copied into `dest` only if `dest` is a directory. -If `dest` does not exist, it will be automatically created as a directory. -Attempting to copy multiple dirents into `dest` if `dest` is an existing file will result in an error. +The path may include a glob pattern to target multiple files or directories. +Multiple dirents are copied into `dest` if it's a directory (or will be created as a directory if it doesn’t exist). +An error occurs if multiple dirents try to get copied into an existing file. When a relative path is specified, additional context is required to know the relative base. For example, a FileSpec in an assignment config is relative to the assignment directory (the directory where the `assignment.json` file lives).