
Fuse::Template::Root - Root filesystem object

package Class;
# will import RootObject typeconstraint
use Fuse::Template::Root qw/RootObject/;
has foo => ( isa => RootObject, coerce => 1 );
...
package main;
# same result:
my $obj = Class->new( foo => { path => $some_root } );
my $obj = Class->new( foo => $some_root );
my $obj = Class->new(
foo => Fuse::Template::Root->new({
path => $some_root
}),
);

The RootObject can coerce either Str and HashRef into a Fuse::Template::Root object. The HashRef will be used as object constructor, while the Str will be set as "path" attribute.

Holds a string representing the path to where the template files exist. This attribute is required.
Holds the file mode for the target mount directory. Default value is 0775. (octal value)
The user id of who owns the target mount path. Defaults to the $REAL_USER_ID
The group id of who owns the target mount path. Defaults to the first integer from $REAL_GROUP_ID.
Last change time of the target mount path. Defaults to time when the object got created.
Last modify time of the target mount path. Defaults to time when the object got created.
Last access time of the target mount path. Defaults to time when the object got created.
Preferred block size for file system I/O. Defaults to 1024. (The default value might change)

See Fuse::Template