nakabonne / pbgopy

Copy and paste between devices
MIT License
807 stars 30 forks source link

how to copy a directory? #32

Open hewson99 opened 2 years ago

hewson99 commented 2 years ago

pbgopy copy < dirname this doesn't work

nakabonne commented 2 years ago

@heweicong Hey, sorry for the delay

You can do that by compressing as mentioned https://github.com/nakabonne/pbgopy/issues/22#issuecomment-748396913

tar -zcvf dir1.tar.gz dir1
pbgopy copy <dir1.tar.gz

Then decompress it with:

pbgopy paste >dir1.tar.gz
tar -zxvf dir1.tar.gz