瀏覽代碼

Fix : delete a torrent

Antoine Leroyer 11 年之前
父節點
當前提交
8931f0df5a
共有 1 個文件被更改,包括 1 次插入0 次删除
  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:"