ScpLocalFile.finish

bool finish(ScpMetadataPolicy policy, uint mode, ulong mtimeSeconds, ulong atimeSeconds, ref string errorMessage)

Applies caller-authorized metadata and closes the file.

Parameters

policyMetadata authorization flags.
modePermission bits from the header (masked to 07777).
mtimeSecondsModification time from the timestamp record.
atimeSecondsAccess time from the timestamp record.
errorMessageReceives the failure description.

Returns

true when metadata application and close succeeded.