Module: Device::Kindle
- Includes:
- BackupBookmarkUtility
- Defined in:
- lib/device/kindle.rb
Constant Summary collapse
- 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, }
Instance Method Summary collapse
Methods included from BackupBookmarkUtility
Instance Method Details
#backup_bookmark ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/device/kindle.rb', line 22 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 |
#restore_bookmark ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/device/kindle.rb', line 30 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 |