Sven vroeg of ook de symlinks weg konden. Dat kan!

This commit is contained in:
Ward Wouts 2013-01-23 10:57:49 +00:00
parent bb7716f820
commit fe7f8f42af

View file

@ -158,6 +158,9 @@ def deleteold(podcast)
! @filelist[entry]
puts " deleting #{entry}"
File.unlink("#{@podcasts[podcast]["savedir"]}/#{entry}")
if @podcasts[podcast]["linkdir"] && File.symlink?("#{@podcasts[podcast]["linkdir"]}/#{entry}")
File.unlink("#{@podcasts[podcast]["linkdir"]}/#{entry}")
end
end
}
end