# `GSInstance finalPath:error:`

*Instance Method*

Returns the file name with the specified format. It includes the “Export Folder” part.

## Declaration

```swift
func finalPath(_ format: String) throws -> String
```

```objc
- (NSString *) finalPath:(NSString *) format error:(NSError **) error;
```

```python
finalPath_error_(format: str) -> tuple[str, NSError]
```

## Parameters

- `format` — The format to use for the file name.
- `error` — A pointer to an NSError object to store any error that occurs.

## Return Value

The file name, or nil if an error occurs.

