Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Nobody 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: References: 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 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().