Sven vroeg of ook de symlinks weg konden. Dat kan!
This commit is contained in:
parent
bb7716f820
commit
fe7f8f42af
1 changed files with 3 additions and 0 deletions
|
|
@ -158,6 +158,9 @@ def deleteold(podcast)
|
||||||
! @filelist[entry]
|
! @filelist[entry]
|
||||||
puts " deleting #{entry}"
|
puts " deleting #{entry}"
|
||||||
File.unlink("#{@podcasts[podcast]["savedir"]}/#{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
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue