Lintian::Path::FSInfo3
File system information for lintian::path
Usage
my $l_path; # A L::Path objectmy $fs_info; # A L::Path::FSInfo objectif ($fs_info->has_anchored_root_dir) {# The "root" dir is anchored and paths starting with "/" can# trivially be resolved (as relative to the "root" dir).} else {# The "root" dir is undefined and paths starting with "/" *cannot*# be resolved.}
Class methods
- new(OPTS)
-
Internal constructor (used by Lintian::Collect::Package)
Instance methods
- _underlying_fs_path(PATH)
-
Given PATH, a Lintian::Path, obtain the underlying file system path that it represents.
- _file_info(PATH)
-
Given PATH, a Lintian::Path, obtain the output from file(1) about the file, if it has been collected. Throws an error if it not available.
- has_anchored_root_dir
-
Returns a truth value if the "root" directory is anchored and is defined by the path string "/". In such cases, paths starting with "/" are well-defined semantically and are relative to the root directory rather than the "current" directory.
On the other hand, if this returns a non-truth value, the "root" directory is not well-defined and no path starting with "/" can be resolved logically.
Releases
2 releases since Debian 9 (Stretch); the text changed 1 time.