1Dist::Metadata::Dir(3)User Contributed Perl DocumentationDist::Metadata::Dir(3)
2
3
4

NAME

6       Dist::Metadata::Dir - Enable Dist::Metadata for a directory
7

VERSION

9       version 0.927
10

SYNOPSIS

12         my $dm = Dist::Metadata->new(dir => $path_to_dir);
13

DESCRIPTION

15       This is a subclass of Dist::Metadata::Dist to enable getting the dists
16       metadata from a directory.
17
18       This can be useful if you already have a dist extracted into a
19       directory.
20
21       It's probably not very useful on it's own though, and should be used
22       from "new" in Dist::Metadata.
23

METHODS

25   new
26         $dist = Dist::Metadata::Struct->new(dir => $path);
27
28       Accepts a single 'dir' argument that should be a path to a directory.
29
30   determine_name_and_version
31       Attempts to parse name and version from directory name.
32
33   dir
34       Returns the "dir" attribute specified in the constructor.
35
36   file_content
37       Returns the content for the specified file.
38
39   find_files
40       Returns a list of the file names beneath the directory (relative to the
41       directory).
42
43   physical_directory
44       Returns the "dir" attribute since this is already a directory
45       containing the desired files.
46

AUTHOR

48       Randy Stauner <rwstauner@cpan.org>
49
51       This software is copyright (c) 2011 by Randy Stauner.
52
53       This is free software; you can redistribute it and/or modify it under
54       the same terms as the Perl 5 programming language system itself.
55
56
57
58perl v5.34.0                      2021-07-22            Dist::Metadata::Dir(3)
Impressum