Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72416
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-06-02 08:13 -0700 |
| References | <a3298f5d-dcf9-4dd7-bae8-b655e8224114@googlegroups.com> |
| Message-ID | <3a3c89ee-aa7a-4be7-a868-348bc5a0f75e@googlegroups.com> (permalink) |
| Subject | Re: How to read a directory path from a txt file |
| From | Samuel Kamau <wachkama@gmail.com> |
On Monday, June 2, 2014 10:18:25 AM UTC-4, Samuel Kamau wrote: > I have created a txt file with various paths to directories. The paths look like this > > /home/wachkama/Desktop/api/genshi > > /home/wachkama/Desktop/www/portal/schedule > > /home/wachkama/Desktop/show/help.genshi > > > > How do i read this paths in python ? I have permission issues with my web server. So I have written part of my script to read and write the current paths in the web servers with its username and group name into a txt file. I want my script to replace the new permissions on my web server with the permissions written on my txt file. So The last part of my script is the tricky part. How to read the txt file and go to all the paths and rewrite the permissions as per what is on the txt file.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to read a directory path from a txt file Samuel Kamau <wachkama@gmail.com> - 2014-06-02 07:18 -0700
Re: How to read a directory path from a txt file Rustom Mody <rustompmody@gmail.com> - 2014-06-02 07:28 -0700
Re: How to read a directory path from a txt file Chris Angelico <rosuav@gmail.com> - 2014-06-03 00:29 +1000
Re: How to read a directory path from a txt file Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-06-02 15:44 +0100
Re: How to read a directory path from a txt file Samuel Kamau <wachkama@gmail.com> - 2014-06-02 08:13 -0700
Re: How to read a directory path from a txt file Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-02 16:24 +0000
Re: How to read a directory path from a txt file Samuel Kamau <wachkama@gmail.com> - 2014-06-02 10:18 -0700
csiph-web