nakabonne / pbgopy

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

how to copy a directory? #32

Open hewson99 opened 3 years ago

hewson99 commented 3 years ago

pbgopy copy < dirname this doesn't work

nakabonne commented 3 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