---
title: "copy"
description: "Create a new path, copying the contents from the src path."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun Path.copy(): Path
```


Create a new path, copying the contents from the src path.



