> 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
   ```

   &#x20;

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
   ```

   &#x20;

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) --`

&#x20;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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
