dpt-rp1-py icon indicating copy to clipboard operation
dpt-rp1-py copied to clipboard

Bulk upload/dowload?

Open cypresstwist opened this issue 5 years ago • 1 comments

Is there a way to bulk upload a bunch of PDF files via the upload command. or download them from the device from a specific folder thereof?

For upload I currently usethis BASH script I quickly put together>

#!/bin/bash
cd /home/cypress/Desktop/13eink/
for f in *.pdf
do
dptrp1 --client-id /home/cypress/.dtp-client --key /home/cypress/.dtp.key --addr 192.168.1.170 upload /home/cypress/Desktop/13eink/$f Document/Pocket/$f
echo "Uploaded $f to Sony DPT-RP1"
done

Converted a bunck of Pocket articles into PDF using a Firefox plugin and put them all into /home/cypress/Desktop/13eink/. Ran the script and all went well, it uploaded every PDF file in /home/cypress/Desktop/13eink/ to Document/Pocket/ on the device preserving filename. Please not that special characters in the filename (such as ”:”) interfere with the script's syntax.

cypresstwist avatar Sep 03 '18 21:09 cypresstwist

The current release has a sync command that takes a local folder and one on the device and copies any missing or updated documents from your PC to the device and vice versa. Other than that, there is no bulk upload functionality yet.

janten avatar Jul 09 '19 23:07 janten