From fe7f8f42af5df0517a6d36d3e9c14dafeb7345e8 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Wed, 23 Jan 2013 10:57:49 +0000 Subject: [PATCH] Sven vroeg of ook de symlinks weg konden. Dat kan! --- getdistorted/getdistorted.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/getdistorted/getdistorted.rb b/getdistorted/getdistorted.rb index 6ef6c18..5012c9c 100755 --- a/getdistorted/getdistorted.rb +++ b/getdistorted/getdistorted.rb @@ -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