---
title: "CopyFile"
method: POST
path: "/v1/files/copy/"
tags: ["files"]
---

# CopyFile

`POST /v1/files/copy/`

Copy a dir/file.

## Request body

- DtoCopyUnixFile
  - `destinationPath` string
  - `shouldOverwrite` boolean
  - `sourcePath` string

## Response `201`

FileCopied

- object

---

[API](https://skmtc.net/goinfinite/apis/osapi.md) · [All operations](https://skmtc.net/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goinfinite/osapi/versions/7320a5d8ef9e/schema)
