<mkdir>

Purpose/Function

Makes directories. One or more URIs can be added.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

cleanup

boolean

true

delete the cache(s) upon termination of the operation

copyCache

ncsa.tools.trebuchet.core.cache.CopyCache

null

make the target directories in this cache

copyCacheFile

java.io.File

null

make the target directories in this cache

includeAncestors

boolean

true

include all the ancestors of each URI

listCache

ncsa.tools.trebuchet.core.cache.ListCache

null

make the directories in this cache

listCacheFile

java.io.File

null

make the directories in this cache

makeParent

boolean

true

same as includeAncestors

Listener control attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

event

boolean

true

if listener is a ProgressListener, send an event

log4j

boolean

false

if listener is a ProgressListener, use log4j

stdout

boolean

false

if listener is a ProgressListener, use stdout

Elements

TAG

TYPE

COUNT

DESCRIPTION

<configuration>

ncsa.tools.trebuchet.core.types.TrebuchetConfiguration

0:1

configuration with additional non-default settings

<uri>

java.net.URI

0:N

locations of directories to make

Listener elements

TAG

TYPE

COUNT

DESCRIPTION

<listener>

ncsa.tools.trebuchet.core.IOperationListener

0:N

generic tag, must be used in conjunction with xmlns:absoluteTag namespace

<logging-listener>

ncsa.tools.trebuchet.core.IOperationListener

0:N

built-in type; see listeners

ReturnValues

DEFAULT NAME

TYPE

mkdir

ncsa.tools.trebuchet.core.operations.CacheBasedOperation

NOTES

  • For a given task, added URIs must all have the same scheme and endpoint.
  • Cleanup defaults to true, so caches that are used will be deleted unless otherwise indicated. The operation is returned only if cleanup is false.
  • It is possible to by-pass adding URIs by pointing the task at pre-existing caches, either as objects in the environment or as files.
  • Any additional settings passed in using the configuration object will be added to the default settings (the latter must be explicitly overridden if they are not desired).

Examples

<ogrescript>
   <mkdir>
	<uri>file:/tmp/dir0</uri>
        <uri>file:/tmp/dir0/dir01</uri>
        <uri>file:/tmp/dir1/dir11</uri>
   </mkdir>
   ...
</ogrescript>
  • No labels