You are not logged in.
seenxu wrote:but I don't see any changes in git, haven't committed the code?
Just did
yo, many thx.
Offline
Version 3.1 is out.
Changelog:
Now using /bin/cp instead of cp (thanks, Chris Gilles)
No more -o option. Files are now overwritten by default.
Pass a -i, --interactive option if you want to be asked
for confirmation before overwritting files
Mimic cp behaviour. (thanks, ctaf)
Offline
(8 months later ...)
Version 4.2 is out:
Changelog:
You can now use --safe to never overwrite files.
Lots of bug fixes, introducing automatic tests
Usable on windows
Got it's pypi page:
http://pypi.python.org/pypi/pycp/4.2
Offline
nice work, just tried, like how it integrates(as in not clearing the screen like vcp does)
Offline
thanks
Offline
Excellent work! I've always missed a progressbar in cp/mv.
there's no place like ~/
Offline
Version 4.3 is out:
now displays transfer the way git does it:
for instance:
/path/to/foo/a/bar -> /path/to/foo/b/bar
becomes
/path/to/foo/{a => b}/bar
Offline
issue report:
I am trying to mv a dir to a new destination, after the mv, the source still be left with a empty dir. is this a expected behaviour? thx
notes:
using python-2.6.5, pycp git-latest and python-progressbar-2.2
Last edited by seenxu (2010-05-16 10:03:12)
Offline
I am trying to mv a dir to a new destination, after the mv, the source still be left with a empty dir. is this a expected behaviour? thx
Nope, this is a bug.
Thanks for reporting.
Fixed in version 4.3.2
Offline
I am trying to mv a dir to a new destination, after the mv, the source still be left with a empty dir. is this a expected behaviour? thx
Nope, this is a bug.
Thanks for reporting.
Fixed in version 4.3.2
thx for the fix, just reinstall it from git, now it works.
Offline
JFYI:
rsync -P gives a progress bar, too.
no place like /home
github
Offline
JFYI:
rsync -P gives a progress bar, too.
pycp saves me to type those rsync options.
Offline
alias r='rsync -P'
?
Offline
I found a possible bug. If I try to copy files to my memory stick, which is formatted in NTFS, cp gives warnings about operation not permitted for saving permissions. However pycp gives the same warning and a python traceback and stops from copying the rest of the files.
Offline
However pycp gives the same warning and a python traceback and stops from copying the rest of the files.
Can you please pastebin the traceback?
Offline
However pycp gives the same warning and a python traceback and stops from copying the rest of the files.
Can you please pastebin the traceback?
Sure. Here it is
http://pastebin.com/5t4J6gTd
It hangs after this error and I can only get out with Ctrl+C, but it does copy the file.
Offline
It hangs after this error and I can only get out with Ctrl+C,
I'll try and fix this, there's no exception handling right now ...
Inside pycp, I just use
shutil.copy(src, dest)
which does something like:
copyfile(src, dst)
copymode(src, dst)
(from /usr/lib/python2.6/shutil.py)
So I'm not sure what to do.
try/except every IOError, and exit the program when the first error occurs ?
abort when copyfile fails but just print a warning if copymode fails ?
make this configurable via command-line options ?
what do you think ?
Offline
I think the best thing to do is to imitate the behavior of the good old cp again. That is to print a warning, but continue.
Offline
cp progressbar - I like it. Thanks
Offline
@riivo
That is to print a warning, but continue.
Let it be this way
I'll try and push something this week end. (although there's a really nice weather here ...)
@cool
You're welcome.
Last edited by Yannick_LM (2010-06-04 20:21:13)
Offline
Have you decided to drop the project?
Offline
Hum, no. What makes you think that?
Last update was june 6th, right after your last post.
pycp: do not hang when exception occurs during file tranfer.
Also, pycp a_file ro_dir now exit with non-zero status.
I can make a new upload to AUR if you want.
EDIT: AUR updated
Last edited by Yannick_LM (2010-06-26 19:05:07)
Offline
My bad. I was looking at the old git and re-compiling pycp not pycp-git form AUR. Works great now. Thanks. Keep up the good work.
Offline
Okay. Just to be sure this won't happen again, I've deleted the old gitorious project.
Sources are now on github
Offline
Version 5.0 is out !
Changelog:
* massive refactoring (code should not be _much_ easier to read
* pycp no longer uses threading code.
copying small files should now be painless
(no more time.sleep)
* pycp learned --all and --preserve options
* change license from GPL to BSD
Code was 73 % rewritten (!)
I got a bunch of unittest, but, please, use with care.
As usual, any feedback is welcome!
Offline