Skip to content

Commit

Permalink
add print
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Dec 4, 2023
1 parent 3f8bfff commit aae98ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions send_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ def copy_klld_to_device(
def upload_file_to_kindle_mtp(driver: Any, source_path: Path, dest_path: Path) -> None:
# https://github.com/kovidgoyal/calibre/blob/52ebc7809506e19beb135f53419a8bb9571c24e3/src/calibre/devices/mtp/driver.py#L417
if not source_path.exists():
print(f"{source_path=} doesn't exist")
return
print(f"{source_path=} {dest_path=}")
storage = driver.filesystem_cache.storage(driver._main_id)
parent = driver.ensure_parent(storage, dest_path.parts)
with source_path.open("rb") as f:
Expand Down

0 comments on commit aae98ee

Please sign in to comment.