Quote:
Originally Posted by eschwartz
With the extra (wasted?) stat calls, you might actually lose time. I'm not sure if os.stat is faster than os.chmod, if not then you always lose.
|
My off-the-cuff guess would be that there won't be much difference since each disk block of a directory will contain several entries, so several directory updates will typically translate into a single disk write later on, which will be the main efficiency consideration. So yes, it sounds to me like an "always-lose" situation.