Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100562 > unrolled thread
| Started by | Siegfried Kaiser <sk@skaiser.at> |
|---|---|
| First post | 2015-12-17 14:03 +0100 |
| Last post | 2015-12-19 07:53 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | Siegfried Kaiser <sk@skaiser.at> |
|---|---|
| Date | 2015-12-17 14:03 +0100 |
| Subject | python 3.4, os.walk does not walk into cdroms |
| Message-ID | <mailman.34.1450359222.30845.python-list@python.org> |
Hello all,
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?
Thanks,
Siegfried
--
Siegfried Kaiser <sk@skaiser.at>
[toc] | [next] | [standalone]
| From | Nobody <nobody@nowhere.invalid> |
|---|---|
| Date | 2015-12-19 07:53 +0000 |
| Message-ID | <pan.2015.12.19.07.53.44.831000@nowhere.invalid> |
| In reply to | #100562 |
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().
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web