Re: removing spaces from front and end of filenames
by Erik Max Francis other posts by this author
Jul 13 2003 1:49AM messages near this date
Re: removing spaces from front and end of filenames
|
Re: Small Python, Java comparison
hokiegal99 wrote:
> This script works as I expect, except for the last section. I want the
> last section to actually remove all spaces from the front and/or end
> of
> filenames. For example, a file that was named " test " would be
> renamed "test" (the 2 spaces before and after the filename removed).
> Any
> suggestions on how to do this?
That's what the .strip method, which is what you're using, does. If
it's not working for you you're doing something else wrong.
--
Erik Max Francis && max@[...].com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ The meaning of life is that it stops.
\__/ Franz Kafka
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
hokiegal99
Bengt Richter
Bengt Richter
Bengt Richter
hokiegal99
Stephen Horne
Stephen Horne
Erik Max Francis
hokiegal99
hokiegal99
Jeff Epler
Erik Max Francis
|