Sorry for the bad question. I did google and found the same pages that Danny mentioned. Just couldn't get the stuff to work, or understand what modules needed to be imported to get them to work. I typically use the tutor list as a last resort. After 4+ hours of playing around with this I made the futile post.....
On Wednesday 07 December 2005 01:42 pm, Gabriel Farrell wrote: > On Wed, Dec 07, 2005 at 11:52:20AM -0800, Danny Yoo wrote: > > On Wed, 7 Dec 2005, Eric Walker wrote: > > > Looking for easiest way to get a files permissions in linux. > > > > Hi Eric, > > > > What have you looked at so far? > > I agree with Danny, the question lacks any evidence of prior > investigation on the part of the poster, and that makes it a lousy > candidate for the helpful guidance of the python tutor list. The > documentation on this aspect of python, however, is pretty sparse, and > the answer's not exactly intuitive, so I thought I'd mention the > effbot's page about the os module as a good place to look, in addition > to the documentation Danny listed. > > http://effbot.org/librarybook/os.htm > > What he's written there should be able to answer your question. > > If I may hijack the thread, does anyone more knowledgeable than me > know why os.stat and stat are so low-level and esoteric? Am I crazy > for wanting to replace > > oct(stat.S_IMODE(os.stat(thefile)[stat.ST_MODE])) > > with, say, > > stat.getmode(os.stat(thefile)) > > or even > > os.getmode(thefile) > > ? > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -- Eric Walker EDA/CAD Engineer Work: 208-368-2573 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor