faqts : Computers : Programming : Languages : Python : Common Problems : Files

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 12 people (42%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How do i get the file name which a File object is representing?

May 27th, 2004 04:51
Michael Chermside, Santosh Kumar,


>>> f = file('test.py')
>>> f.name
'test.py'