1 package DX::Lib::FS::Action::CreateDirectory;
3 use aliased 'DX::Lib::FS::Fact::PathStatus';
4 use aliased 'DX::Lib::FS::Fact::PathStatusInfo';
7 with 'DX::Role::Action';
8 with 'DX::Lib::FS::Role::RunOn';
10 has path => (is => 'ro', required => 1);
12 has mode => (is => 'ro', predicate => 1);
16 return +(path_status => PathStatus->new(
18 info => PathStatusInfo->new(
20 mode => ($self->has_mode ? $self->mode : '')
27 $self->_call_guts(create_directory => $self->mode);
28 +(path_status => $self->path);