Lintian::Path::FSInfo (3) Linux Manual Page
Lintian::Path::FSInfo – File System information for Lintian::Path
Synopsis
my $l_path; # A L::Path object
my $fs_info; # A L::Path::FSInfo object
if ($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.
