<chmod>
Purpose/Function
Changes permissions on files or directories. This is a wrapper around the UNIX shell command.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
pathExpression |
|
required if there are no paths |
a Unix-like path expression (can be absolute) |
paths |
|
required if no path expression set |
list of path strings (can be file URIs or paths) |
permissions |
|
required |
e.g., "744" or "ugo+x" |
recursive |
|
|
add "-R" to the command |
altShellPaths |
|
|
additional places to look for the shell executable on this host (defaults are /bin/sh and /usr/bin/sh) |
Elements
TAG |
TYPE |
COUNT |
DESCRIPTION |
---|---|---|---|
|
|
0:N |
a path to add to the path list |
|
|
0:N |
a path to add to the alternate shell path list |
ReturnValues
None.
Examples
... <chmod permissions="754" pathExpression="/tmp/copies/*" recursive="true"/> <chmod permissions="go-rwx"> <path>/tmp/source/a.txt</path> <path>/tmp/source/b.txt</path> <path>/tmp/source/c.txt</path> </chmod> ...