Sha256: 7f36ae9619e5daf34e09bc96b58f4b25149a0a8daff161a33c8e20415017ffd6
Contents?: true
Size: 918 Bytes
Versions: 11
Compression:
Stored size: 918 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 = { "force.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) 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) paths.size end end
Version data entries
11 entries across 11 versions & 1 rubygems