your-tools / pycp

cp and mv with a progress bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pvcp & pvmv Directories doesn't create new Source directory in destination..

jadedgnome opened this issue · comments

I use: pymv ~/Videos /media/storage

the files and folders within Videos appear directly in /media/storage

it should appear as /media/storage/Videos.

Not reproduced here. What version are you using ?

Can you try run it like this:

PYCP_DEBUG=1 pymv ~/Videos /media/storage

I've tried to write a test to reproduce the problem but it passes:
d1ebd0f

I realized what i'd done. I typed "/videos/" instead of "/videos". Can you make the a forward slash entry redirect to the top level instead of the sub-directories? This mistake is bound to happen to others who copy and past path's as well as myself.

works perfectly, thanks.