# GetCanonicalPath()

Returns the canonical pathname string based on the given string.

```
GetCanonicalPath( path=string );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| path | string | Yes | path to a component or component itself |  |

# Examples

```cfml
base_path = getBaseTemplatePath();
canonical = getCanonicalPath(base_path);
dump(canonical); // /home/webs/sbx/lucee5/getremote.cfm
```







# Categories

[File handling](../../categories/files.md)