EPUB

O'ReillyのiPhone AppからEPUBファイルを抽出するRubyスクリプト【Windows版】

404 Blog Not Found:perl - O'ReillyのiPhoneアプリ本からepubをぶっこぬくを参考に、Ruby版を作ってみるテストのWindows版です。Windowsにはzip/unzipコマンドがないので、ziprubyライブラリを使ってみました。 require "fileutils" require "zipruby" def …

O'ReillyのiPhone AppからEPUBファイルを抽出するRubyスクリプト

404 Blog Not Found:perl - O'ReillyのiPhoneアプリ本からepubをぶっこぬくを参考に、Ruby版を作ってみるテスト。 #/usr/bin/env ruby def deleteall(delthem) if FileTest.directory?(delthem) then # ディレクトリかどうかを判別 Dir.foreach( delthem ) d…