DOKK / manpages / debian 10 / lintian / Lintian::Path::FSInfo.3.en
Lintian::Path::FSInfo(3) Debian Package Checker Lintian::Path::FSInfo(3)

Lintian::Path::FSInfo - File System information for Lintian::Path

  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.
  }

Internal constructor (used by Lintian::Collect::Package)

_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.
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.

Originally written by Niels Thykier <niels@thykier.net> for Lintian.

lintian(1), Lintian::Path(3), Lintian::Collect(3), Lintian::Collect::Binary(3), Lintian::Collect::Source(3)

2019-05-26 Lintian v2.15.0