This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[tip] updating only part of your collection

Tags: None
(comma "," separated)
Toba
Registered Member
Posts
1
Karma
0
Recently the fact that the automatic collection scan (Watch folders for changes) won't update if files are changed in place has been getting under my skin, so I wrote a short script (shell, not amaroK) to fix the problem.

Code: Select all
find * -type d|sed 's/$/\//'|egrep "^($1.*)$"|sed -e "s/^\(.*\)$/\"\1\"/g"|xargs -l1 touch
dcop amarok collection scanCollectionChanges


More details: http://toba.ath.cx:724/blog/archives/amarok-collection-update-script.html.

Edit: minor typo in my script fixed

Last edited by Toba on Wed Jun 14, 2006 2:31 am, edited 1 time in total.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]