Load Files by Path
Files can be add in a Filestar session by entering paths.
Globs
Glob syntax is a way of specifying sets of filenames with wildcard characters. Here's a comprehensive explanation of different types of glob syntax:
Asterisk (*): Matches any number of characters (including none). For instance,
*.txt
matches any file with an.txt
extension.Question Mark (?): Matches any single character. For example,
?.txt
would matcha.txt
,b.txt
, but notab.txt
.Character Ranges [ ]: Matches any one of the enclosed characters. A range of characters can be specified with a dash. For example,
[a-c].txt
matchesa.txt
,b.txt
, andc.txt
.Negated Character Ranges [! ]: Matches any character not enclosed. For example,
[!a-c].txt
would matchd.txt
but nota.txt
,b.txt
, orc.txt
.Curly Braces { }: Matches any of the comma-separated patterns inside the braces. For example,
{file, test}.txt
matchesfile.txt
andtest.txt
.Literal Match: Any character not part of a special glob pattern (like
*
,?
,[ ]
,{ }
) matches itself.Backslash Escaping: A backslash can be used before a special character to treat it as a regular character. For example,
\\*
would match an actual asterisk*
.Globstar: Used to match directories and files within. For example,
**/*.txt
matches all.txt
files in all directories and subdirectories.
Last updated