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

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Nobody <nobody@nowhere.invalid>
Newsgroups comp.lang.python
Subject Re: python 3.4, os.walk does not walk into cdroms
Date Sat, 19 Dec 2015 07:53:45 +0000
Organization A noiseless patient Spider
Lines 13
Message-ID <pan.2015.12.19.07.53.44.831000@nowhere.invalid> (permalink)
References <mailman.34.1450359222.30845.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Info mx02.eternal-september.org; posting-host="152d4dee6f95183c956ee6fa63d7e69f"; logging-data="18982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+F9jbbjUNSeVvs59VADv6s"
User-Agent Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)
Cancel-Lock sha1:U22wLmUi2v/abIQQJgzPdFTLvtM=
Xref csiph.com comp.lang.python:100610

Show key headers only | 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