Comparing folder contents

Hi all
This is a it embarrassing to be honest, but I find myself in a bit of a filing based mess.
The background - skip if you don't want to hear bleating about how poor my filing is
In a fit of idiocy I have made many duplicate folders (including multiple duplicates of content such as my 15,000 image photo library) to ensure safety of the files therein. I've done this a lot of the last three years, and find myself now in a position where I haven't got a clue what is where, and what is up-to-date.
I have 600G odd drive space.
I have 1 50G iMovie project, a large iPhoto library and quite a bit of music.
I have 30G free - mainly because of my completely slap-dash method of 'backing up' - which I realise I'm not actually doing - and also because I have a lot of files copied here from other desktops, laptops and iPods.
The question
Obviously I have a task on my hands to sort this lot out. What would make my life a lot easier would be an application that compares the contents of two folders, and shows me where they differ - this way I am hoping to be able to completely erase great swathes of files without having to comb through them making sure I don't loose an iSight screen grab of my son smashing his Buzz into the screen or some-such. Anyone know of anything that would make my life easier here?
I used to be fairly ordered about where I put files, and how my folders are structured, honest.
Thanks for any help / advice / smacks on the back of the hand...
Flea

Arctic
Well you have a nice project to pass the Winter nights!
Do a search on http://www.macupdate.com using 'duplicate' as the search term. This will provide you with quite a few apps which claim to search for and remove duplicate files. Read and make your choices there.
However, do not trash any file without reviewing it yourself. There are some things a computer cannot do, and recognising emotionally valuable items is one of them.
Have fun.
Regards
TD

Similar Messages

  • How can I compare folder content with time delay

    Hi all, I'm new here, with no programming skills but with a lot of LV manuals read
    So, there is a C-smth program  - no source. It writes .avi file in
    folder if event has occur, and it names that file with exact time
    (yyyy-mm-dd-hh-mm-ss) of that event. Using DAQ and program "written" in
    LV 7.1 I record voltage, but I don't need to store that if nothing new
    is written in that folder with .avi files. However if smt new is in it
    4 minutes before and 4 minutes after event has to be recorded and
    stored  by LV.
    I have no idea how to do this!
    My major problem is comparing content of the folder with that folder but say 1 sec before.
    Any suggestions?
    Izidor

    Izidor,
    You could use two different loops and share the information between them using Queues or Notifiers.  One loop could be acquiring data and sending the datapoints to a consumer loop using the above mentioned methods.  The consumer loop would then check the folder for files with recent timestamps for names and save the data to a file.
    There are examples in example finder (help>>find examples) for Queues and Notifiers.  Also press "new" at the LabVIEW Getting Started Window for looking at the producer/consumer architecture.
    I hope this helps.
    Steven T.

  • Compare file contents

    Usually I take my photos in RAW format, and a matching jpeg is produced automatically by the camera software. The file names are identical except for the extension. Occasionally however for speed of working I will take some photos on the card in jpeg only -no matching RAW.
    I have a workflow that separates the RAW and jpeg files into separate folders, but I can't seem to find a method to compare folder contents so as to easily and quickly identify the "lone jpegs" (i.e. those that have no matching RAW). The comparison could of course be done before or after separation - whichever is easiest.
    Anyone tried this or similar - it seems to be not currently possible (a glaring omission IMO) but maybe there's a work round that someone's found and would share?
    Thanks in advance for any responses!

    I don't know about automator, but it's an easy one for the shell:
    cohi@tigger:/tmp> ls raw
    1.raw 2.raw 4.raw
    cohi@tigger:/tmp> ls jpg
    1.jpg 2.jpg 3.jpg 4.jpg
    cohi@tigger:/tmp> ( find jpg -name "*.jpg" ; find raw -name "*.raw" ) | sed 's/raw/jpg/g' | sort | uniq -c | grep " 1" | cut -b 9-
    jpg/3.jpg

  • How can i compare the contents of two folders ?

    how can i compare the contents of two folders and find out which files are in one but not in the other?? Knowing how to do this would be the best thing ever, especially when dealing with a large number of files. Often, for instance, I'm dealing with a large number of images, processing them, and saving the retouched ones to a new folder, and need to check that they are all there. If there are say three files missing in the second folder (out of say a hundred in total) being able to automate the process of elimination would be very useful. Please help!!!
    B

    I really wish I knew the answer to this. I work between two macs, a G5 and MacBook Pro when I'm on the go. Each time I move from one to the other I have to copy all my files to the computer I'm going to work on, so I end up with the same files being duplicated. It's not a problem if it's not much data but in my case the it can be to 30GB, mostly graphics files, photoshop, motion, final cut pro, etc.
    There's has got to be a way automator can make a comparison between two folders to sort out what's changed and what's remained the same. It would be nice also if this feature could be done globally on the hard disk using spotlight's technology to stop files being duplicated in places you didn't even know about and taking up valuable disk space. I'm not sure how this could be done.
    Any bright ideas Apple?

  • Coping folder contents and sub folders

    So, I'm working on a little practice folder sync project (fun with my mac)...
    ...and I'v gotten hung up a bit because my little copying app doesn't seem to count folders and sub folders (which I suppose makes sense).
    My initial idea was to take just the date of modification and compare it to the last date that the app was run, inorder to only copy changed files. But this seems problematic on a few levels, so...
    So, my two part question is:
    1. Is there a simple command to copy folder contents and sub-folder contents, or do I need to tell the script to do each sub-folder individually?
    2. I imagine that a better way to manage which files/folders need to be updated is to create a file with a list of the contents, and dates of modification, and compare the new folder list and the old folder list to each-other... ok.. so, um. yeah. that sounds tricky.

    >1. Is there a simple command to copy folder contents and sub-folder contents, or do I need to tell the script to do each sub-folder individually?
    There are two common solutions to this.
    The first is to use the Finder's 'entire contents of...' command to get a list of everything in the folder, including sub-folders, the second is to make your script recursive - that is, it calls itself several times over.
    In the first case it's as simple as:
    tell application "Finder"
    set allItems to entire contents of folder "path:to:source:folder:"
    -- rest of code goes here
    end tell
    This can have problems, though, especially on very large directories since the Finder is not very efficient at building a list of hundreds or thousands of files.
    The recursive path is a little trickier, but you write a handler to process a folder then repeatedly call that handler, like:
    <pre class=command>on run
    set sourceFolder to (choose folder)
    processAFolder(sourceFolder)
    end run
    on processAFolder(theFolder)
    tell application "Finder"
    set allItems to items of folder theFolder as alias list
    repeat with eachItem in allItems
    if class of eachItem is folder then -- we have a subfolder
    processAFolder (eachItem)
    else
    -- code here to compare the file and back it up
    end if
    end repeat
    end tell
    end processAFolder</pre>
    So here you walk through the folder, each time you find a new folder, you walk through that until you're done. The code takes care of keeping track of where you are in the folder hierarchy.
    >2. I imagine that a better way to manage which files/folders need to be updated is to create a file with a list of the contents, and dates of modification, and compare the new folder list and the old folder list to each-other... ok.. so, um. yeah. that sounds tricky.
    There's no need to keep a file. Assuming you have two folders you can just walk through one of them checking to see if each item exists in the other, then copy the newer file to the other directory, like:
    <pre class=command>on processAFile(fileName, sourceDir, destDir)
    tell application "Finder"
    -- check if the files exist
    set sourceFileExists to (file fileName of folder sourceDir exists)
    set destFileExists to (file fileName of folder destDir exists)
    -- now comes the logic
    if sourceFileExists and not destFileExsits then
    duplicate file fileName of folder sourceDir to folder destDir
    else if destFileExists and not sourceFileExists then
    -- assuming you want a two-way synch
    duplicate file fileName of folder destDir to folder sourceDir
    else -- both files exist, so check mod dates
    if (modification date of file fileName of folder sourceDir) > (modification date of file fileName of folder destDir) then
    duplicate file fileName of folder sourceDir to folder destDir
    else if (modification date of file fileName of folder destDir) > (modification date of file fileName of folder sourceDir) then
    duplicate file fileName of folder sourceDir to folder destDir
    end if
    end if
    end tell
    end processAFile</pre>
    If you're not planning a two-way synch an even simpler option is to just keep track of the last time the synch was run. Then all you need to do on subsequent runs is ask the Finder for 'every file of folder sourceFolder whose modification date is greater than lastRunDate'.

  • Script to Compare File Contents in Two Folders and List Differences?

    I've looked through the Forum but can't find anything that seems quite to address my problem--and I'm really new to AppleScript, so please forgive me if this is a dumb question.
    I burn a great many files of varying kinds (InDesign, Illustrator, Photoshop, PDF, etc.) to DVD everyday as part of my job. It happens not infrequently, though, that files drop out in the process and don't make it to the disk, with the result that I get calls from Manufacturing saying that I've screwed up and that random files X, Y, and Z are not on the disk that I sent.
    I've tried various ways to failproof my burning routine, but utlimately, it seems like something still slips through sometimes--that is, the files are definitely in by Source Folder, but sometimes they don't leap the chasm to the disk. And since there can be several hundred files, it can be difficult to know at a glance if something is wrong.
    It would be extremely helpful if there were a script that I could run to compare the contents of the folder source on my desktop (just say its called "Source Folder") with the contents of a disk I have just burned (whose name might vary, but whose folder structure is a duplicate of the subfolders in "Source Folder" that I have burned to disk. All I need the script to tell me is if there are files in my desktop Source Folder than are not on the burned disk).
    Is this possible? I'd appreciate any help anyone could offer--right now, I'm printing up the disk directory and a list of the files from my desktop Source Folder and comparing them line for line, and my soul is dying.
    Please help!

    This can be pretty easily hacked together using a combination of AppleScript and shell scripting.
    There's a shell command diff that can tell if two directories are the same or not. You can use AppleScript to put a nice front-end on it, like:
    set src to (choose folder with prompt "Select the source directory")
    set dst to (choose folder with prompt "Select the destination directory/disk")
    try
      do shell script "diff -rq " & quoted form of POSIX path of src & space & quoted form of POSIX path of dst
    on error theErr
      display dialog "The following differences were found:" & return & return & theErr
      return
    end try
    display dialog "Directories match. No differences found"
    It's quick and dirty, but should get you started. It runs the diff command which triggers the 'on error' code if there are any differences. The script then reports the differences and exits. If there are no differences the 'on error' code is skipped and you get the all clear message.

  • Setting up to View Folder Contents in Browser

    I have placed 40 jpg images in a folder on my web site. How
    can I let visitors view the file names (folder contents) &
    select an image by name.
    I hate to have to make a page & enter all 40 image file
    names with links to the files. Is there a better way to do this?
    Thanks,
    Dennis

    On Tue, 25 Jul 2006 20:34:34 +0000 (UTC), "dvhughes"
    <[email protected]> wrote:
    >I have placed 40 jpg images in a folder on my web site.
    How can I let visitors
    >view the file names (folder contents) & select an
    image by name.
    >
    > I hate to have to make a page & enter all 40 image
    file names with links to
    >the files. Is there a better way to do this?
    You could enable directory browsing in the directory, but
    then you'll
    need to accept the rather ugly server default index page. If
    it were me,
    I'd write a short script that read the directory and
    displayed a more
    attractive listing. How you would go about that would depend
    on what
    server scripting language(s) you have available on the
    server.
    Gary

  • Apple loops for garageband pack doesn't show the folder content (loops, files...)  in ableton live suite 8 library browser, but I can see all the loops in the folder from finder. how can i fix this? help please.

    apple loops for garageband pack doesn't show the folder content (loops, files...)  in ableton live suite 8 library browser, but I can see all the loops in the folder from finder. how can i fix this? help please.

    Thanks Barney, I tried that but all that comes up in Spotlight are the log files that show the file paths! I don't know how Steam works. Are all the files held by Steam on their server perhaps?

  • Can we compare file contents of two files in the Application server?

    Hi,
    A file is generated daily to the application server. and i need to compare the generated file to the file generated on the previous day and prepare a report.
    Can we compare file contents of two generated files present in the Application server?
    If there is any alternative, please suggest.
    regards
    cs

    yes we can compare if the app server is Unix.
    cmp compare two binary files and report if different
    cmp is silent if the files are the
         same;
    if they differ, the byte and line number at which the first
    difference occurred is reported.
    REPORT ZUNIX line-size 400
                    no standard page heading.
    data: unixcom like   rlgrap-filename.  
    unixcom = 'cmp file1 file2'.
    data: begin of tabl occurs 500,
            line(400),
          end of tabl.
    data: lines type i.
    start-of-selection.
      refresh tabl.
      call 'SYSTEM' id 'COMMAND' field unixcom
                    id 'TAB'     field tabl[].
    "if the files are different then you will some content in tabl
    Regards
    Viajy  Babu Dudla

  • How to compare the contents of two XML documents

    Hi all,
    I was trying to compare the contents of two xml documents, they are both validate for the same XML Schema. i was using the xmlunit to do this. but some how it doesn't work like what i have expected. for example:
    1.xml : <test><item>2</item><item>1</item></test>
    2.xml: <test><item>3</item><item>2</item><item>1</item></test>
    the result from XMLUnit is this two xmls are different, but it compares <item>2</item> with <item>3</item>, which i cannot find out where the real diiffs are.
    does anybody know how i can do this correct?
    best regards,
    tina

    I faced a similar problem in one of my projects and hence wrote my own comparator. Most comparators like ExamXML etc show XML as different if the nodes under a parent node occur in different seqeunce or a set of repeated nodes occur in different sequence. The comparator that I wrote gives you the flexibility to configure how to identify a node from a set of repeated nodes and is able to compare them successfully if they occur in any order. You can view the sample output at http://geocities.com/dheerendra_itbhu/TipsFromDheeru.html
    and contact me in case you need the source code.

  • C: drive is full - move only iTunes Media folder contents to another drive without consolidating?

    My iTunes library contains a combination of music/movies/etc that I've purchased or downloaded from the iTunes Store as well as music I've purchased from Amazon and my own ripped CDs (not ripped via iTunes...other software).  The Amazon and ripped files have always lived on my D drive (for easier sharing betwen family members, without opening up permissions on our User folders), while the Store files all live under my User profile on C.
    I'd like to move the iTunes Media folder contents off of C and onto D.  All the instructions that use "consolidating" and "keeping the media folder organized" will not work for me, since I do not want all my files under the iTunes Media folder...I like them where they are now in D:\Music\Amazon and D:\Music\CDCollection.
    Do I have to resort to moving the files myself, adding them into the library again, then cleaning up the orphaned library entries that are pointing to the old location?
    Thanks!

    Copy the entire iTunes folder from your music folder to D:\iTunes.
    Click the icon to start iTunes and immediately press and hold down the shift key. Keep holding until asked to choose or create a library.
    Click Choose and navigate to the file D:\iTunes\iTunes Library.itl
    Check the library is working properly.
    Use the option File > Library > Organize Library > Consolidate Files to import any stay files to the new library folder.
    Delete the old iTunes folder on the C: drive.
    Ideally you will also backup this library to another drive.
    tt2

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • Imac slow to display folder content

    Hi,
    My Mid 2010 Imac 3.06 GHz Intel Core i3 with 4GB 1333 MHz RAM is currently having problems displaying folder content. As I am a photographer I am often opening folders of images and needing to view them and recently when I click on a folder or sub-folder the images can take upto a few minutes to display (making it look like the folder is empty). It only seems to happen intermittently.
    I have already checked hard disk space and have 371 gb free space. I was also advised to look at the green coloured free memory segment in the pie chart on the Activity Monitor which was very small. Since closing lots of programs which were sat on my dashboard and also deleting some items off of my Desktop this has now improved and is running around the 475 MB mark. Despite this, the displaying of folder content has NOT improved in the slightest.
    Can anyone help?
    Many Thanks

    Surprising that the RAM hasn't improved things. Once you've resolved the current issue I'm sure you will notice a boost in performance 12gb is ample RAM for most uses.
    Before re-installing it is vital to have a backup of all your data so that you can restore in the unlikely event of a problem. Re-installing the OS will not delete you data, but backup - at any time - is essential. An up-to-date Time Machine backup or a  bootable clone of your HD using an application such as Carbon Copy Cloner or SuperDuper! will do the job. Many on here keep both forms of backup.
    If you do decide to re-install the OS you can do it from the Recovery HD. Restart holding down Command + R and from the screen with 4 choices select Re-install OS - you'll need an active internet connection and you might need to input your AppleID credentials to perform the install. It's a 4gb download so it might take some time, depending on your connection speed.
    More details here: http://support.apple.com/kb/HT4718

  • Printing Finder (Folder) Contents

    I often have need to print the contents of a folder as it appears in the finder (i.e. print the finder window or some list of filenames in the folder). There is no "Print" command in the file menu when a window is open. I have been taking snapshots of various views, but sometimes end up with multipl snapshots.
    Is anyone aware of another way to do this?
    Thanks in advance!

    Just boot into OS9 it has the capability... J/K!
    OK, here's a few ways...
    http://www.macosxhints.com/article.php?story=20060720174103802
    http://www.macosxhints.com/article.php?story=2004020716455773
    http://mac.softpedia.com/progDownload/Print-Folder-Contents-Download-27645.html

  • Bookmark drag down list difficulty-folder contents overlay folder list

    Previous Firefox versions: Bookmark folders drag down in column list, contents of each folder appear in column to right of the folder list, similar to arrangement of an outline page with each subcategory tabbed over.
    New version: Contents of folders appear as I scroll down through the folder column, preventing me from seeing the next folder in column. E.G. As I scroll down past "Business" to get to my "Travel" folder, contents of business folder open on top of the main folder column preventing me from dragging down further to Travel.

    I do agree. Mine is not *perfectly* fixed neither. When the folder’s contents list is wide and contains subfolders, the cursor needs to go completely above or below those subfolder’s contents to be released from displaying it. I can readily imagine how yours is not practical.
    But mine is decent enough that I am going to live with it for now, hoping that the prior functionality (which is normal behavior IMO) is restored in an upcoming release.
    Trying to describe this gives me a newfound appreciation for those who practice the craft of technial writing.

Maybe you are looking for

  • Retrival of data in smartview

    . hi friends i m new in HFM so i need help about following query The data is exported to smart view in excel but the cells are showing zeros what could be the reason? Thanks

  • How can I insert a new table whose cells are linked to Cell Styles?

    How can I define a Table Style so that cells in new tables are automatically linked to my Cell Styles? (Not sure if "linked" is exactly the appropriate word....I'm going for "connected in such a way that when the Style is changed, the character/parag

  • Can the parameter in the url be invisible?

    hi, I want the parameters in the url to be invisible. That is if the url is http://localhost:8080/index.jsp?create=12 , so in the url bar it has to be displayed like http://localhost:8080/index.jsp. But the parameters should not be displayed. Is it p

  • Stage.addchild

    Hi, This is my Document Class package BowerPower.Startup{ import flash.display.MovieClip; import flash.events.Event; public class Preloader extends MovieClip {   public function Preloader() {    stage.addChild(Preloader); I have a movieclip in the li

  • Is it possible to scan over a network

    Is it possible to scan over a network using Airport Express? I ahve a brother mfc210c.