---
name: "Lintian::Path::FSInfo"
section: "3"
platform: "linux"
package: "lintian"
version: "2.15.0"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Lintian::Path::FSInfo"
---

# Lintian::Path::FSInfo(3)

File System information for Lintian::Path

## NAME

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)](/file/1.md) 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.

## AUTHOR

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

## SEE ALSO

[**lintian**(1)](/lintian/1.md), [**Lintian::Path**(3)](/Lintian::Path/3.md), [**Lintian::Collect**(3)](/Lintian::Collect/3.md), [**Lintian::Collect::Binary**(3)](/Lintian::Collect::Binary/3.md), [**Lintian::Collect::Source**(3)](/Lintian::Collect::Source/3.md)
