Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100610

Re: python 3.4, os.walk does not walk into cdroms

From Nobody <nobody@nowhere.invalid>
Newsgroups comp.lang.python
Subject Re: python 3.4, os.walk does not walk into cdroms
Date 2015-12-19 07:53 +0000
Organization A noiseless patient Spider
Message-ID <pan.2015.12.19.07.53.44.831000@nowhere.invalid> (permalink)
References <mailman.34.1450359222.30845.python-list@python.org>

Show all headers | View raw


On Thu, 17 Dec 2015 14:03:25 +0100, Siegfried Kaiser wrote:

>  I have a problem with os.walk - it does not walk into a mounted cdrom, I
>  do not see the cdrom in the walk at all.
> What can I do to walk into cdrom?

1. Are you sure that the directory tree contains the actual mount point,
not just a symlink to it? os.walk() doesn't follow symlinks unless
followlinks=True is given explicitly.

2. Have you tried using the onerror= parameter to report errors? The
default is to silently ignore errors from os.listdir().

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

python 3.4, os.walk does not walk into cdroms Siegfried Kaiser <sk@skaiser.at> - 2015-12-17 14:03 +0100
  Re: python 3.4, os.walk does not walk into cdroms Nobody <nobody@nowhere.invalid> - 2015-12-19 07:53 +0000

csiph-web