By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,714 Members | 750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,714 IT Pros & Developers. It's quick & easy.

working with files and directories

P: n/a
Hi all, I'm new with Python, and I thought to use it to automatically rename
some files in a directory, but I don't know where should I search the
functions: to get all the files of a directory, to rename the files and so
on.
Thank you.
Nov 27 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
halex2000 wrote:
Hi all, I'm new with Python, and I thought to use it to automatically rename
some files in a directory, but I don't know where should I search the
functions: to get all the files of a directory, to rename the files and so
on.
Python programmers are constantly looking at:

http://docs.python.org/lib/lib.html

In this case, see 14.1.4, 11.1, and 11.10.

Happy hacking.

--
--Bryan

Nov 27 '06 #2

P: n/a
"halex2000" wrote:
Hi all, I'm new with Python, and I thought to use it to automatically rename some files in a
directory, but I don't know where should I search the functions: to get all the files of a
directory, to rename the files and so on.
see

http://effbot.org/pyfaq/how-do-i-del...-questions.htm
http://docs.python.org/tut/node12.html

and the relevant modules in the library reference.

</F>

Nov 27 '06 #3

P: n/a
halex2000 schrieb:
Hi all, I'm new with Python, and I thought to use it to automatically rename
some files in a directory, but I don't know where should I search the
functions: to get all the files of a directory, to rename the files and so
on.
Thank you.

Have you actually even tried to find some "documentation"?
Have you placed a google search "python directories rename files"?
Thomas
Nov 27 '06 #4

P: n/a

"Thomas Ploch" <Th**********@gmx.netha scritto nel messaggio
news:ma**************************************@pyth on.org...
Have you actually even tried to find some "documentation"?
Have you placed a google search "python directories rename files"?
Thomas
Actually I did it on the documentation file provided with the windows
distribution. I took a look at 11 ("File and Directory Access") but the
listed functions doesn't appear to be what I need. 14.1.4 should do the job,
but was not as intuitive to find as the previous one.
Nov 27 '06 #5

P: n/a

"Bryan Olson" <fa*********@nowhere.orgha scritto nel messaggio
news:2Y*******************@newssvr13.news.prodigy. com...
halex2000 wrote:
>Hi all, I'm new with Python, and I thought to use it to automatically
rename some files in a directory, but I don't know where should I search
the functions: to get all the files of a directory, to rename the files
and so on.

Python programmers are constantly looking at:

http://docs.python.org/lib/lib.html

In this case, see 14.1.4, 11.1, and 11.10.

Happy hacking.

--
--Bryan
Thank you very much :-)
Nov 27 '06 #6

P: n/a
"halex2000" <po*******@libero.itwrote:
"Thomas Ploch" <Th**********@gmx.netha scritto nel messaggio
news:ma**************************************@pyth on.org...
>Have you actually even tried to find some "documentation"?
Have you placed a google search "python directories rename files"?
Thomas

Actually I did it on the documentation file provided with the windows
distribution. I took a look at 11 ("File and Directory Access") but
the listed functions doesn't appear to be what I need. 14.1.4 should
do the job, but was not as intuitive to find as the previous one.
Do you know about the search tab in windows help? Searching for "rename
files", or indeed a search identical to the one suggested for Google will
both find 14.1.4 as the top hit.
Nov 27 '06 #7

P: n/a

"Duncan Booth" <du**********@invalid.invalidha scritto nel messaggio
news:Xn*************************@127.0.0.1...
"halex2000" <po*******@libero.itwrote:
>"Thomas Ploch" <Th**********@gmx.netha scritto nel messaggio
news:ma**************************************@pyt hon.org...
>>Have you actually even tried to find some "documentation"?
Have you placed a google search "python directories rename files"?
Thomas

Actually I did it on the documentation file provided with the windows
distribution. I took a look at 11 ("File and Directory Access") but
the listed functions doesn't appear to be what I need. 14.1.4 should
do the job, but was not as intuitive to find as the previous one.
Do you know about the search tab in windows help? Searching for "rename
files", or indeed a search identical to the one suggested for Google will
both find 14.1.4 as the top hit.
I'm aware of it, thank you. I usually don't use to ask for infos that I
could easily find myself in a few seconds, but I had not the time at the
moment to even start a search (of course, If I knew it would have been so
quick, I would have done it myself). I was just under the impression that I
was looking in the wrong place.
Nov 27 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.