Explorar o código

Fix : delete a torrent

Antoine Leroyer %!s(int64=11) %!d(string=hai) anos
pai
achega
8931f0df5a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/rSeed/rtorrent.rb

+ 1 - 0
lib/rSeed/rtorrent.rb

@@ -97,6 +97,7 @@ module RSeed
     def delete(hash)
       begin
         @client.call("d.stop", hash)
+        FileUtils::remove_dir(@client.call("get_directory") + "/" + self.getName(hash))
         @client.call("d.erase", hash)
       rescue XMLRPC::FaultException => e
         puts "Error:"