Sha256: 961b08d949a15d1f8df49786e02f67a7ae9251bbd259fba0dbd70923a74dd9f3
Contents?: true
Size: 956 Bytes
Versions: 3
Compression:
Stored size: 956 Bytes
Contents
# -*- coding: utf-8 -*- # # Copyright 2013 whiteleaf. All rights reserved. # require "fileutils" module Device::Kindle PHYSICAL_SUPPORT = true VOLUME_NAME = "Kindle" DOCUMENTS_PATH_LIST = %w(documents Documents Books) EBOOK_FILE_EXT = ".mobi" NAME = "Kindle" DISPLAY_NAME = "Kindle" RELATED_VARIABLES = { "default.enable_half_indent_bracket" => true, } include Device::BackupBookmarkUtility def backup_bookmark documents_path = get_documents_path raise Device::DontConneting unless documents_path paths = Dir.glob(File.join(documents_path, "*.sdr/*.azw3{f,r}")) Helper.copy_files(paths, get_storage_path, exception: false) paths.size end def restore_bookmark documents_path = get_documents_path raise Device::DontConneting unless documents_path paths = Dir.glob(File.join(get_storage_path, "*.sdr/*")) Helper.copy_files(paths, documents_path, exception: false) paths.size end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
narou-3.2.5.1 | lib/device/kindle.rb |
narou-3.2.5 | lib/device/kindle.rb |
narou-3.2.4 | lib/device/kindle.rb |