So,
For English instructions please scroll down
weil es praktisch unmöglich ist, gezielt Dateien in Gruppen, ohne einen Zeitaufwand von mehreren Stunden zu investieren, zu löschen und somit Speicher zu schaffen, habe ich ein kurzes Skript in Python geschrieben.
Hier wird zuerst eine Liste von den Dateien im eigenen Verzeichnis erstellt und dann im angegeben Gruppenverzeichnis jede Datei mit den Dateien in der Liste verglichen und über Vergleich von Größe und Erstellungszeit herausgefiltert, ob ein File in sich in einer Gruppe befindet (egal, ob umbenannt).
Ausgegeben wird der vollständige Pfad, des gefundenen Duplikats.
Benötigt wird der python-Interpreter (getestet mit 2.6 unter Linux) sowie eine aktive Filesystemintegration.
Benutzung:
HOME = '/home/unix/wuala/direct/myfiles/Ordner'GROUPDIR = '/home/unix/wuala/direct/mygroups/Gruppe'Anmerkung:
nfs defaults,users,noauto,rsize=8192,wsize=8192,timeo=60,acregmin=10,noac,intr,nolock,soft um vorschnelle Timeouts zu vermeiden
History:
Bug und Wünsche und Kritik bitte in die Kommentare oder per Mail.
In der Hoffnung, dass es jemanden etwas bringt.
Find My Files in Groups – Script
It is nearly impossible to search directly your files ('My Files’) in a specific groups, without wasting a lot of time to search in every single folder if there is one of your files. But when you need space and try to delete simply the file in “My Files” it will not deleted (and give you space free) when the file is linked to a group.
So to find your files in a group I have written a little python script.
It scans (recursivly) a group/folder and compares every item with every file in “My Files” scanned previously via creation time and size comparison. The Result is a complete (FSI)-path to the group.
You’ll need a python interpreter (tested with 2.6 on Linux) as well as an active filesystemintegration (FSI).
Usage:
HOME = '/home/unix/wuala/direct/myfiles/Folder'GROUPDIR = '/home/unix/wuala/direct/mygroups/Group'
Windows user have to use the specific network drive letter as well as a path with slashes. no backslashes!
Notes:
nfs defaults,users,noauto,rsize=8192,wsize=8192,timeo=60,acregmin=10,noac,intr,nolock,soft to increase the time before a timeout occur
History:
Bugs and wishes please via comment or email.
Last updated: 26.05.2009