<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

java.lang.String

required if there are no paths

a Unix-like path expression (can be absolute)

paths

java.util.List

required if no path expression set

list of path strings (can be file URIs or paths)

permissions

java.lang.String

required

e.g., "744" or "ugo+x"

recursive

boolean

false

add "-R" to the command

altShellPaths

java.util.List

null

additional places to look for the shell executable on this host (defaults are /bin/sh and /usr/bin/sh)

Elements

TAG

TYPE

COUNT

DESCRIPTION

path

java.lang.String

0:N

a path to add to the path list

altShellPath

java.lang.String

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>
...
  • No labels