PEP ? os.listdir enhancement
Riccardo Galli
riccardo_cut1 at cut2_sideralis.net
Thu Jun 23 06:48:47 EDT 2005
On Thu, 23 Jun 2005 12:56:08 +0300, Konstantin Veretennicov wrote:
> On 6/22/05, Riccardo Galli <riccardo_cut1 at cut2_sideralis.net> wrote:
>
>> I propose to add an 'abs' keyword which would make os.listdir return the
>> absolute path of files instead of a relative path.
>
> What about os.listdir(dir='relative/path', abs=True)? Should listdir call
> abspath on results? Should we add another keyword rel? Would it complicate
> listdir unnecessarily?
>
> - kv
keyword dir not exists (don't know if you added as example or not) and
abs set to true would return abspath on result. What else could it do ?
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
More information about the Python-list
mailing list