I've been carrying this one-liner patch locally for a while since I
basically never put taxi files on my Karma and want to upload music
with a minimum of fuss.  My music directory has album art and other 
crap spread around.  Does anyone else want this?  If so I'll cook up 
a patch that isn't quite so hacky.

diff -r 550d970756a8 tools/riocp.c
--- a/tools/riocp.c     Sun Oct 01 21:55:02 2006 -0400
+++ b/tools/riocp.c     Sun Oct 01 21:55:24 2006 -0400
@@ -172,6 +172,10 @@ int treecopy(const char *file, const str
         currentKarma(0, &karma);
         first=0;
     }
+
+    if (!strstr(file, "ogg") && !strstr(file, "mp3"))
+       return 0;
+
     if(flag==FTW_F) {
         fid = lk_rio_write(karma, file);
         printf("Uploading fid %d, %s: %s\n", fid, file, (fid>0)?"ok":"failed");

-- 
Bob Copeland %% www.bobcopeland.com 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to