# FileInfo

Import: `import com.install4j.api.context.FileInfo;`

```java
interface FileInfo
```

Provides information about a file in the distribution tree. Objects of this type are returned by
[`Context.getDestinationFileInfo`](Context.md#getdestinationfileinfo-string). Also, the "File filter" and "Directory resolver" handlers of the
"Install files" action offer a parameter of this type. In those handlers, this class is useful to filter or divert
an entire installation root.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getDestinationFile()`](#getdestinationfile) | `File` | Get the actual installation location of the file. |
| [`getRootUnresolved()`](#getrootunresolved) | `String` | Get the unresolved installation root for the file. |
| [`getRootResolved()`](#getrootresolved) | `File` | Get the resolved installation root for the file. |
| [`getRelativeFilePath()`](#getrelativefilepath) | `String` | Get the relative path of the file in the distribution tree without the installation root. |
| [`getFilesetId()`](#getfilesetid) | `String` | Get the id of the fileset or a zero-length string for the default fileset. |
| [`getFilesetName()`](#getfilesetname) | `String` | Get the name of the fileset, a zero-length string for the default fileset, or `null` if the fileset is non-existent. |

### getDestinationFile()

```java
File getDestinationFile()
```

Get the actual installation location of the file.


**Returns:** the installation location

### getRootUnresolved()

```java
String getRootUnresolved()
```

Get the unresolved installation root for the file. "Unresolved" means that no installer variables have been replaced.


**Returns:** the unresolved root or  `null` for the installation directory.

### getRootResolved()

```java
File getRootResolved()
```

Get the resolved installation root for the file. "Resolved" means that all installer variables have been replaced.


**Returns:** the resolved root

### getRelativeFilePath()

```java
String getRelativeFilePath()
```

Get the relative path of the file in the distribution tree without the installation root.


**Returns:** the relative path

### getFilesetId()

```java
String getFilesetId()
```

Get the id of the fileset or a zero-length string for the default fileset.


**Returns:** the fileset id

### getFilesetName()

```java
String getFilesetName()
```

Get the name of the fileset, a zero-length string for the default fileset, or `null` if the fileset is non-existent.


**Returns:** the fileset name

