1 package DX::Lib::FS::Action::CreateDirectory;
3 use aliased 'DX::Lib::FS::Fact::PathStatus';
4 use aliased 'DX::Lib::FS::Fact::PathStatusInfo';
8 with 'DX::Role::Action';
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 DX::Lib::FS::Guts->create_directory($self->path, $self->mode);
28 +(path_status => $self->path);