Re: when user in ftp has a @ inside
Bram Moolenaar <[email protected]> Tue, 27 Nov 2012 22:21:51 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Marco wrote: > On Mon, Nov 26, 2012 at 11:14:14PM +0100, Bram Moolenaar wrote: > Hi Bram, > > Well this seems to work fine: > > --- CopyMove2.py 2012-11-27 00:27:23.061417243 +0100 > +++ CopyMove.py 2012-11-27 00:25:35.913425063 +0100 > @@ -189,7 +189,7 @@ > msg = '' > > # For "user:[email protected]" split at the @ > - i = string.find(mach, '@') > + i = string.rfind(mach, '@') > if i > 0: > user = mach[:i] > machname = mach[i+1:] Looks like a nice and simple solution. I'll include it. Now I need to figure out how to upload, Sourceforge must have changed something... -- ASCII stupid question, get a stupid ANSI. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: DESIGN Expert tips on starting your parallel project right. http://goparallel.sourceforge.net