> For the complete documentation index, see [llms.txt](https://docs.hedge.video/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hedge.video/offshoot/features/duplicate-detect.md).

# Duplicate Detection

OffShoot will automatically detect duplicates when copying data into an existing folder structure. A file will not be copied when *all* of these conditions are met:

* A file with an identical name exists in the folder where the copy will end up
* That file has the same file size
* That file has the same modification date

When a file with an identical name already exists on the destination path, but has a different byte size and/or modification date, it will be copied using a counter following Finder and Explorer's duplicate naming conventions: `B002C006_180327_R1ZA.mov` becomes `B002C006_180327_R1ZA 2.mov`.

### Skip the modification date check

In some workflows, duplicate detection can’t rely on a file’s modification date. In that case, you can skip the modification date check.

{% tabs %}
{% tab title="macOS" %}
Requires **OffShoot 26.1.2** or newer.

1. Open Terminal.
2. Paste the command below, then press Return:<br>

   ```
   defaults write nl.syncfactory.Hedge.Mac SFIDefaultsSkipDuplicateDetectModificationDateCheck -bool true
   ```

To undo this change:

1. Open Terminal.
2. Paste the command below, then press Return:<br>

   ```
   defaults delete nl.syncfactory.Hedge.Mac SFIDefaultsSkipDuplicateDetectModificationDateCheck
   ```

{% endtab %}

{% tab title="Windows" %}
Requires **OffShoot 26.2** or newer.

1. Open PowerShell.
2. Paste the command below, then press Return:<br>

   ```
   New-Item -Path "HKCU:\Software\Hedge" -Force | Out-Null

   New-ItemProperty `
     -Path "HKCU:\Software\Hedge" `
     -Name "SkipDuplicateDetectModificationDateCheck" `
     -Value 1 `
     -PropertyType DWord `
     -Force
   ```

To undo this change:

1. Open PowerShell.
2. Paste the command below, then press Return:<br>

   ```
   Remove-ItemProperty `
     -Path "HKCU:\Software\Hedge" `
     -Name "SkipDuplicateDetectModificationDateCheck"
   ```

{% endtab %}
{% endtabs %}

#### Logging

Skipped files will be logged in the Transfer Log, under the section:

`-- Skipped files (already on destination) --`

Duplicates that do not match all criteria are logged as such:

`-- Transferred files --`\
`#1: B002C006_180327_R1ZA.mov`\
`path: XDROOT/CLIPS/B002C006_180327_R1ZA 2.mov`

#### Finding duplicates without copying

If an identical file exists in a different folder on your destination, the source file will be copied. If you are looking for a way to find duplicates on an existing drive, have a look at [Duplicate Detective](https://fiplab.com/apps/duplicate-detective-for-mac) or [Gemini](https://macpaw.com/gemini).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hedge.video/offshoot/features/duplicate-detect.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
