How to read a directory path from a txt file
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 ? -- https://mail.python.org/mailman/listinfo/python-list
Re: How to read a directory path from a txt file
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. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to read a directory path from a txt file
On Monday, June 2, 2014 12:24:59 PM UTC-4, Denis McMahon wrote: > On Mon, 02 Jun 2014 08:13:23 -0700, Samuel Kamau wrote: > > > > > I have permission issues with my web server. > > > > Hacks to fix permissions problems are dangerous. There is probably a > > better way to fix this issue. > > > > -- > > Denis McMahon, denismfmcma...@gmail.com The issue is that i use jenkins to deploy my files to the web server. Jenkins takes possession of all files as username and group name. This over right the right permissions on the web server. I want the script to be restoring the right privileges after jenkins deploys a new build. -- https://mail.python.org/mailman/listinfo/python-list