Re: [Tutor] Request for help with os.walk() combining os.path.ismount() in Linux

2015-08-21 Thread Srihari Vijayaraghavan
On 21 August 2015 at 02:57, Alan Gauld wrote: > On 20/08/15 09:51, Srihari Vijayaraghavan wrote: > >> In general I agree, but this is what the os.walk() document states: >> "... When topdown is True, the caller can modify the dirnames list >> in-place (perhaps

Re: [Tutor] Request for help with os.walk() combining os.path.ismount() in Linux

2015-08-20 Thread Srihari Vijayaraghavan
On 20 August 2015 at 18:51, Srihari Vijayaraghavan wrote: > On 20 August 2015 at 18:25, Alan Gauld wrote: >> On 20/08/15 04:03, Srihari Vijayaraghavan wrote: >> >>> out = sys.stdout.write >>> for root, dirs, files in os.walk("/"): >>> out(

Re: [Tutor] Request for help with os.walk() combining os.path.ismount() in Linux

2015-08-20 Thread Srihari Vijayaraghavan
On 20 August 2015 at 18:25, Alan Gauld wrote: > On 20/08/15 04:03, Srihari Vijayaraghavan wrote: > >> out = sys.stdout.write >> for root, dirs, files in os.walk("/"): >> out("The dirs before removing mount points: %s\n" % dirs) >> for

[Tutor] Request for help with os.walk() combining os.path.ismount() in Linux

2015-08-20 Thread Srihari Vijayaraghavan
#x27;bin', 'lib', 'opt', 'lost+found', 'etc', 'sbin', 'var', 'sys', 'media', 'backup', 'home', 'usr', 'tmp', 'proc', 'mnt', 'boot', 'lib64&#x