juruen / rmapi

Go app that allows you to access your reMarkable tablet files through the Cloud API
GNU Affero General Public License v3.0
976 stars 106 forks source link

[small enhancement] Create missing parent directories when using mput / put #132

Open overflw opened 3 years ago

overflw commented 3 years ago

If rmapi mput /f1/f2 and on the rM exists only f1, f2 should be created as a child of f1. If no folder alike exists yet, both should be created. What do you think about this behavior? Maybe we can use a flag for it e.g. -r or -R ?

Another question - what do you think about moving mput syntax-wise in the direction of rsync-alikes?
Something like rmapi mput <src> <dest>? So we could fuse the put and get commands?

ddvk commented 3 years ago

i would just add a param for the src folder -src to not break backward compatibility