« Sah/Schema/dirname/default_only_subdir_not_file_in_curdir.pm
↑ Summary
Sah/Schema/dirname/exists/default_only_subdir_in_curdir.pm »
| 1 | package Sah::Schema::dirname::exists; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 6 | 1 | our $DATE = '2024-02-16'; # DATE | |
| 7 | 1 | our $DIST = 'Sah-SchemaBundle-Path'; # DIST | |
| 8 | 1 | our $VERSION = '0.031'; # VERSION | |
| 9 | |||
| 10 | 1 | our $schema = ["dirname" => { | |
| 11 | summary => 'Directory name, must exist on filesystem', | ||
| 12 | description => <<'MARKDOWN', | ||
| 13 | |||
| 14 | This is like the `dirname` schema but with an extra check that the path must | ||
| 15 | already exist. | ||
| 16 | |||
| 17 | MARKDOWN | ||
| 18 | prefilters => [ | ||
| 19 | 'Path::check_dir_exists', | ||
| 20 | ], | ||
| 21 | }]; | ||
| 22 | |||
| 23 | 1 | 1; | |
| 24 | # ABSTRACT: Directory name, must exist on filesystem | ||
| 25 | |||
| 26 | __END__ | ||