소스 검색

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:"