Show all Dropbox conflicted copies

5

I'd like some way to see all the conflicted copies from my Dropbox folder.

I personally use a Mac mostly, but I welcome Windows and Linux solutions.

Nathan G.

Posted 2011-03-26T02:12:23.633

Reputation: 490

you want a script which lists them? – Sathyajith Bhat – 2011-03-26T07:00:14.593

@Sathya Yes: a script, 'Smart Folder' (Mac), freeware app, anything. – Nathan G. – 2011-03-26T13:26:52.823

Answers

2

Since I couldn't find a good way to do this for Mac, I wrote my own script using the find command and some AppleScript.

Paste this into AppleScript editor and save it as an app:

set conflictedFiles to do shell script "cd ~/Dropbox; find -L . \\( -path \"*.dropbox*\" -prune \\) -o \\( -name \"*conflicted*\" -print \\)"
set fileList to paragraphs of conflictedFiles as list
repeat with currFile in fileList
  set currPath to (path to home folder as string) & "Dropbox" & POSIX file (characters 3 thru -1 of (currFile as string) as string)
  tell application "Finder" to make new Finder window to currPath
end repeat

This script finds all the conflicted files and opens a Finder window to each one.
Be careful using this if you think you've got a lot of conflicts; your desktop may get covered with windows!

Note that this will still work fine if you've got symlinks in your Dropbox folder.

Nathan G.

Posted 2011-03-26T02:12:23.633

Reputation: 490

2

MacPaw's Gemini duplicate file utility can also route out these and file copies of all kinds. Then you can delete them easily. It's $6.99 in the App store. Just zapped about 500 conflicted docs.

RFB

Posted 2011-03-26T02:12:23.633

Reputation: 21

1

Your question isn't very clear, if you want a listing of all files which are conflicted in Windows command prompt cd to the Dropbox folder and type in

dir *"Selective Sync"* /s /b

Sathyajith Bhat

Posted 2011-03-26T02:12:23.633

Reputation: 58 436

0

I've written a script in sh which does this. It ought to run on any standard Linux or Unix shell - and also supports piping filenames through encfsctl if you have an encfs-encrypted folder in there.

You can find it on github.

Andrew Ferrier

Posted 2011-03-26T02:12:23.633

Reputation: 1 604