Open topic with navigation

# get_filename

The `get_filename` function returns the path of the file associated with a document.

## Syntax

    get_filename( doc )

## Arguments

Argument | Description
--- | ---
`doc` | (LuaDocument) The function returns the path of the file associated with this document.

## Returns

String. Returns the path and file name of the file associated with the document, or an empty string if there is no file associated with the document.

## Example

    local filename = get_filename(document);

© Copyright 2018 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm