| 1 | use v5.28; | ||
| 2 | use warnings; | ||
| 3 | use Object::Pad 0.73; | ||
| 4 | |||
| 5 | class Archive::SCS::Mountable 1.12; | ||
| 6 | |||
| 7 | |||
| 8 | sub handles_path ($class, $path, $header) { | ||
| 9 | warnings::warnif deprecated => sprintf | ||
| 10 | "%s->handles_file() is deprecated; please implement %s->handles_path()", ($class) x 2; | ||
| 11 | $class->handles_file($path->openr_raw, $header); | ||
| 12 | } | ||
| 13 | |||
| 14 | |||
| 15 | method path () { | ||
| 16 | warnings::warnif deprecated => sprintf | ||
| 17 | "%s->file() is deprecated; please implement %s->path()", (__CLASS__) x 2; | ||
| 18 | $self->file; | ||
| 19 | } | ||
| 20 | |||
| 21 | 1; | ||
| 22 | |||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Archive::SCS::Mountable - Something that can be mounted by Archive::SCS | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | Represents an SCS archive file or a similarly mountable entity. | ||
| 31 | |||
| 32 | This may become a role in future. | ||
| 33 | |||
| 34 | =head1 AUTHOR | ||
| 35 | |||
| 36 | L<nautofon|https://github.com/nautofon> | ||
| 37 | |||
| 38 | =head1 COPYRIGHT | ||
| 39 | |||
| 40 | This software is copyright (c) 2026 by nautofon. | ||
| 41 | |||
| 42 | This is free software; you can redistribute it and/or modify it under | ||
| 43 | the same terms as the Perl 5 programming language system itself. |