True remove patch (shift+d removes file from filesystem)

Hey!

I have found this player not long ago and it is wonderful! The only big thing it lacks is the lack of "remove_from_filesystem" command. Because I download a lot of unsorted music and while listening I want to delete files I dont like (not to waste disk space).

So, I've made a small patch:

http://polosataja-patches.googlecode.com/svn/trunk/moc/moc_2.4.0_true_remove.diff

that adds "D" (shift+d) command that deletes a file (or a directory if it is pressed in the left pannel).

P.S. I'm new to C development, so I want to know, how is it ideologically correct to implement this command? Fork()ing linux standart "rm" command or writing everything yourself using unlink() and rmdir().

The patch seems to be correct, but there is simpler solution without modifing the sources: look at http://moc.daper.net/node/175 for examples.

--
Damian Pietras - MOC developer

Oh, true. Much simplier. The only it does not refresh the view. =(

This is fixed in 2.4.1.

--
Damian Pietras - MOC developer