fn create_transaction_dirs(path: impl AsRef<Path>) -> Result<PathBuf, Error>Expand description
Creates all directories required for a transaction to function at path.
Returns the canonicalized transaction data directory.
§Note
This creates path and all required subdirectories.
§Errors
Returns an error, if
pathexists and- it cannot be canonicalized
- it is not a directory
- metadata for it cannot be retrieved
- its ownership cannot be changed to the UID/GID of the calling user
- its permissions cannot be changed to the default permissions
pathdoes not exist and- it cannot be created
- its permissions cannot be set to the defaults
- any of the required subdirectories
- cannot be created
- cannot be adjusted to be owned by the calling UID/GID and have default permissions