[Tutor] Permission Report
Hello all, I have a tree of code on a machine which has been tweaked and fiddled with over several months, and which passes tests. I have the same codebase in a new virtual machine. A shell hack[0] shows me that the permissions are very different between the two. I could use rsync or something to synchronise them, but I would like to produce a report of the sort: Change file: foo from 755 to 775 So I can try to work out why this is necessary. I'm not sure how best to proceed - I guess walk through the filesystem gathering info using stat, then do the same on the new system, and compare. Or are there some clever modules I could use? S. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Permission Report
Stephen Nelson-Smith [EMAIL PROTECTED] wrote I could use rsync or something to synchronise them, but I would like to produce a report of the sort: Change file: foo from 755 to 775 I'm not sure how best to proceed - I guess walk through the filesystem gathering info using stat, then do the same on the new system, and compare. Yes, os.walk and os.stat should do what you want. There is a dircmp module that may do what you want but I've not used it. Alan G ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Permission Report
Alan Gauld wrote: There is a dircmp module that may do what you want but I've not used it. It was deprecated in Python 2.0 and removed in 2.5. From a quick look it might provide a useful framework but it doesn't compare permissions. Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor