Skip to main content

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 into bx://tmp/
  • bx cp /tmp/**/*.tmp bx://tmp Uploads all .tmp files under the /tmp folder tree into bx://tmp/ keeping the original directory structure under /tmp/
  • bx cp /tmp/**/aa/*.tmp bx://tmp Uploads all .tmp files in any aa folder under the /tmp folder tree into bx://tmp/ keeping the original directory structure under /tmp/
  • bx cp /tmp/**/aa/b*.tmp bx://tmp Uploads all .tmp files, whose name starts with b in any aa folder under the /tmp folder tree into bx://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 with b in any aa folder under the /tmp folder tree into bx://tmp/ keeping the original directory structure under /tmp/

Supported commands

``bx cp``