stupid question about os.listdir

Ben Finney bignose-hates-spam at and-zip-does-too.com.au
Thu Jun 26 22:26:47 EDT 2003


On Fri, 27 Jun 2003 02:22:36 GMT, Jason Kratz wrote:
> os.listdir takes a pathname as an arg but it doesn't actually list the
> contents of the dir I pass in.

Please reduce the problem to a simple script that others can examine,
and post it here.  If the behaviour is as you say, it should be only a
few lines long:

    import os
    os.listdir( 'somethingyouthinkshouldwork' )

-- 
 \      "God forbid that any book should be banned. The practice is as |
  `\               indefensible as infanticide."  -- Dame Rebecca West |
_o__)                                                                  |
http://bignose.squidly.org/ 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B




More information about the Python-list mailing list