File-system paths
BatchX file-system paths
BatchX file-system path are canonically represented by starting with bx://
.
Path patterns
Some of the CLI commands accept file patterns written in Apache Ant syntax, as follows:
?
matches one character*
matches zero or more characters**
matches zero or more 'directories' in a path
Examples
bx cp /tmp/*.tmp bx://tmp
Uploads all.tmp
files of/tmp
folder intobx://tmp/
bx cp /tmp/**/*.tmp bx://tmp
Uploads all.tmp
files under the/tmp
folder tree intobx://tmp/
keeping the original directory structure under/tmp/
bx cp /tmp/**/aa/*.tmp bx://tmp
Uploads all.tmp
files in anyaa
folder under the/tmp
folder tree intobx://tmp/
keeping the original directory structure under/tmp/
bx cp /tmp/**/aa/b*.tmp bx://tmp
Uploads all.tmp
files, whose name starts withb
in anyaa
folder under the/tmp
folder tree intobx://tmp/
keeping the original directory structure under/tmp/
bx cp /tmp/**/aa/b?.tmp bx://tmp
Uploads all.tmp
files, whose name has length 2 and starts withb
in anyaa
folder under the/tmp
folder tree intobx://tmp/
keeping the original directory structure under/tmp/
Supported commands
``bx cp
``