[ccan] Upload code module

Rusty Russell rusty at rustcorp.com.au
Thu Jun 26 15:17:20 EST 2008


On Thursday 26 June 2008 14:09:53 dinesh g wrote:
> Currently, users who logged in, only can upload code. Is it required to
> allow upload from users who did not logged in?

It's nice to allow it, yes.  If someone has code they want to drop off it's 
better if they don't have to visit twice.

> .zip file is allowed now.
>
> Junk code directory which stores score low code(ccanlint) is also up.
>
> Renaming to <packagename>-<author> if package name already exist is also
> up.

Excellent!

> Still i am not able to delete files using "rsync --delete --force" it says
> permission denied and cannot delete non empty directories.

You shouldn't need --force.  Works here OK:

rusty at vivaldi:/tmp/ccan-dinesh$ rsync --delete -av . 
dinesh at ozlabs.org::ccan-dinesh/
Password:
building file list ... done
./
testdir/
testdir/foo

sent 5436 bytes  received 72 bytes  355.35 bytes/sec
total size is 375440  speedup is 68.16
rusty at vivaldi:/tmp/ccan-dinesh$ rm -r testdir
rusty at vivaldi:/tmp/ccan-dinesh$ rsync --delete -av . 
dinesh at ozlabs.org::ccan-dinesh/
Password:
building file list ... done
deleting testdir/foo
deleting testdir/
./

sent 3337 bytes  received 22 bytes  181.57 bytes/sec
total size is 375440  speedup is 111.77

Cheers,
Rusty.



More information about the ccan mailing list