Skip to content

Commit 72f3864

Browse files
committed
[docs] Document wildcard directory patterns
Note that remote transfer patterns ending in '/' only match directories.
1 parent a1a9ef2 commit 72f3864

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎docs/reference/command-line-interface/transfer.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ multipass transfer 'ample-pigeon:logs/*.txt' .
5151
```
5252

5353
Wildcard patterns do not match hidden entries unless the pattern component starts with `.` (for
54-
example, `logs/.*.txt`). When copying to a host directory, multiple matches require a directory
55-
destination; writing to `-` requires exactly one match. Wildcards in local source paths are expanded
56-
by the host shell as usual. A path that exists literally is transferred as-is, even if it contains
57-
wildcard characters; to match a literal `[` in a pattern, put it in a character class, as in
58-
`logs/a_[[]*].txt`.
54+
example, `logs/.*.txt`), and a pattern ending in `/` matches directories only. When copying to a
55+
host directory, multiple matches require a directory destination; writing to `-` requires exactly
56+
one match. Wildcards in local source paths are expanded by the host shell as usual. A path that
57+
exists literally is transferred as-is, even if it contains wildcard characters; to match a literal
58+
`[` in a pattern, put it in a character class, as in `logs/a_[[]*].txt`.
5959

6060
---
6161

0 commit comments

Comments
 (0)