Setup-File
view release on metacpan or search on metacpan
This function is not exported.
This function is idempotent (repeated invocations with same arguments
has the same effect as single invocation). This function supports
transactions.
Arguments ('*' denotes required arguments):
* follow_symlink => *bool* (default: 0)
Whether to follow symlink.
* mode* => *str*
Permission mode, either numeric or symbolic (e.g. a+w).
* orig_mode => *int*
If set, confirm if current mode is not the same as this.
* path* => *str*
Path to file/directory.
Special arguments:
* -tx_action => *str*
For more information on transaction, see L<Rinci::Transaction>.
* -tx_action_id => *str*
For more information on transaction, see L<Rinci::Transaction>.
* -tx_recovery => *str*
For more information on transaction, see L<Rinci::Transaction>.
* -tx_rollback => *str*
For more information on transaction, see L<Rinci::Transaction>.
* -tx_v => *str*
For more information on transaction, see L<Rinci::Transaction>.
Returns an enveloped result (an array).
First element ($status_code) is an integer containing HTTP-like status
code (200 means OK, 4xx caller error, 5xx function error). Second
element ($reason) is a string containing error message, or something
like "OK" if status is 200. Third element ($payload) is the actual
result, but usually not present when enveloped result is an error
response ($status_code is not 2xx). Fourth element (%result_meta) is
called result metadata and is optional, a hash that contains extra
information, much like how HTTP response headers provide additional
metadata.
Return value: (any)
chown
Usage:
chown(%args) -> [$status_code, $reason, $payload, \%result_meta]
Set file's ownership.
Fixed state: "path" exists and ownership is already correct.
Fixable state: "path" exists but ownership is not correct.
Unfixable state: "path" doesn't exist.
This function is not exported.
This function is idempotent (repeated invocations with same arguments
has the same effect as single invocation). This function supports
transactions.
Arguments ('*' denotes required arguments):
* follow_symlink => *bool* (default: 0)
Whether to follow symlink.
* group => *str*
Numeric GID or group.
* orig_group => *str*
If set, confirm if current group is not the same as this.
* orig_owner => *str*
If set, confirm if current owner is not the same as this.
* owner => *str*
Numeric UID or username.
* path* => *str*
Path to file/directory.
Special arguments:
* -tx_action => *str*
For more information on transaction, see L<Rinci::Transaction>.
* -tx_action_id => *str*
For more information on transaction, see L<Rinci::Transaction>.
* -tx_recovery => *str*
For more information on transaction, see L<Rinci::Transaction>.
* -tx_rollback => *str*
For more information on transaction, see L<Rinci::Transaction>.
* -tx_v => *str*
( run in 0.375 second using v1.01-cache-2.11-cpan-5511b514fd6 )