directory listing
Richard Townsend
richard at nospam.com
Fri Nov 11 17:13:08 EST 2005
On 11 Nov 2005 22:00:04 GMT, Michael Konrad wrote:
> Richard Townsend <richard at nospam.com> wrote:
>
>> On 11 Nov 2005 21:20:33 GMT, SU News Server wrote:
>>
>> Try passing the full pathname of each item to os.path.isdir()
>>
>> You can create the pathname using os.path.join(directory, x)
>>
>>
>>
>
> I wonder if I can join ./, so I don't have the full path in each
> entry?
>
> Thank you for responding.
> _Michael
Why not assign the os.path.join() result to a new variable, pass that to
os.path.isdir() but still append x to the list?
--
Richard
More information about the Python-list
mailing list