Page 1 of 2 12 LastLast
Results 1 to 10 of 22

Thread: Twins v0.4 released.

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Uruguay
    Beans
    1,645

    Twins v0.4 released.

    Here is the latest version of my program. Im still planning on adding more options in the future but for now this is it.

    Description:
    Twins is a program that scans directories looking for identical files and lists them for their easy identification. Twins was written in python. Latest version is 0.4

    Changes since last version:
    new in 0.4
    FIXED: A file would appear to be a duplicate when it was scanned and then re-scanned if being pointed by one or more symlinks.
    FIXED: Bug where the program kept scanning the same directories in an endless loop.
    Usage:
    Code:
    twins [options] [target directory]
     OPTIONS:
            -s, --slent                 Do not be verbose, only show final report.
            -r, --recursive             Be recursive, enter subdirectories.
            -h, --include-hidden        Scan hidden files, if recursive will scan hidden directories.
            -l, --follow-links          Follow symlinks.
    I hope everyone likes it and finds it useful. If you have any comments please let me know here or by e-mail. My address is located in the source of the program.


    Also, if someone is familiar with making deb packages i would like to ask for their help so I can easily distribute this and eventually if possible get it in the repos.
    Attached Files Attached Files

    Member of the UbuntuBeginnersTeam

    Member of the UnansweredPostsTeam

  2. #2
    Join Date
    Dec 2005
    Beans
    527
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Twins v0.4 released.

    ooh... looks cool. looks cool I need soemthign to scan for duplicate songs for me, but thats more of an id3 thing

    One mroe suggestion. It would be cool if you did something liek modularize it and seperate the single executables up. Alot of people prefer this method.

  3. #3
    Join Date
    May 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Twins v0.4 released.

    Looks great!

    I'm trying it now on my external drive. I know it has a lot of duplicates on it...

    Thanks!

    I can make a deb for it, if you would like. Just post a reply and I'll get to it.

  4. #4
    Join Date
    May 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Twins v0.4 released.

    Code:
    Traceback (most recent call last):
      File "twins.py", line 158, in <module>
        findDupes(parameters[-1])
      File "twins.py", line 72, in findDupes
        findDupes(fullPath)
      File "twins.py", line 72, in findDupes
        findDupes(fullPath)
      File "twins.py", line 48, in findDupes
        for element in dircache.listdir(path):
      File "/usr/lib/python2.5/dircache.py", line 27, in listdir
        list = os.listdir(path)
    OSError: [Errno 13] Permission denied: '/media/external-1/backups/files/lost+found'
    When it hits a folder it doesn't have permissions for, it dies, taking all the collected MD5 sums with it...

  5. #5
    Join Date
    Aug 2006
    Location
    Uruguay
    Beans
    1,645

    Re: Twins v0.4 released.

    Ok, i think ive fixed it. I still havnt really read about handling errors so i will probably have to improve it int he future, but this should do it for now.

    Also, a deb would be great but I will im trying to modularize the program now so i will be releasing a new version later. Thanks for trying it out, i really apreciate it!!
    Attached Files Attached Files

    Member of the UbuntuBeginnersTeam

    Member of the UnansweredPostsTeam

  6. #6
    Join Date
    May 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Twins v0.4 released.

    Cool.

    If you want me to make a deb of it when you release the new version, just stick a post on this thread.

  7. #7
    Join Date
    Aug 2006
    Location
    Uruguay
    Beans
    1,645

    Re: Twins v0.4 released.

    I will, thanks man!

    Member of the UbuntuBeginnersTeam

    Member of the UnansweredPostsTeam

  8. #8
    Join Date
    Jun 2007
    Location
    Colorado, USA
    Beans
    891
    Distro
    Lubuntu 16.04 Xenial Xerus

    Re: Twins v0.4 released.

    Ran it on my /home directory and saw how much of a pack-rat I am!

    it would be cool if something like this could eventually be incorporated with a program (command line or GUI) with the ability to find and remove those hidden backup files (ending with ~) and clear out the ~/.thumbnails directory.

    works well though. thanks!
    HP G71 Notebook - 2.20 GHz Intel Core2Duo T6600 - 4GB DDR2 - Intel GMA 4500MHD - Atheros AR9285 802.11b/g/n WiFi Adapter
    Be aware of what you enter into the terminal. Ask for clarification if you are unsure what a command does.

  9. #9
    Join Date
    Dec 2006
    Location
    Vietnam (U.S. expat)
    Beans
    134
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Twins v0.4 released.

    This is a much need tool, and thank you for the good work.

    I used it for a quick check on a small directory (no hidden files/permission problems) and it worked as advertised.

    Ran it against a larger directory using -r (with lots of dupes) and it worked a hitch.

    Just for "fun" I ran it against my /etc directory (figured there would be few dupes, but at least some other potential problems) and got:

    hashing output interspersed with a few messages similar to this one:
    Error opening file for reading: [Errno 13] Permission denied: '/etc/apt/trustdb.gpg' - Skipping

    it continues to scan. Great.

    Then the fatal:
    Hashing /etc/cups/raw.types...
    ...done hashing. MD5Sum is: 8d45496cddd485f6d9a894321fcd4028

    Traceback (most recent call last):
    File "twins", line 158, in <module>
    findDupes(parameters[-1])
    File "twins", line 72, in findDupes
    findDupes(fullPath)
    File "twins", line 72, in findDupes
    findDupes(fullPath)
    File "twins", line 48, in findDupes
    for element in dircache.listdir(path):
    File "/usr/lib/python2.5/dircache.py", line 27, in listdir
    list = os.listdir(path)
    OSError: [Errno 13] Permission denied: '/etc/cups/ssl'

    and it terminates. I don't know if it found any dupes (doubt it).

    Hope this is useful to you. I've been away from programming way too long to offer fix suggestions.

  10. #10
    Join Date
    Dec 2005
    Beans
    527
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Twins v0.4 released.

    I think I can handle the error if you want... It shouldnt be that hard just a simple try except OSError

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •