3 ms·You use chmod on the directory...writing any code for this kind of task would be crazy overkill.by patmcc 9y agoYou use chmod on the directory...writing any code for this kind of task would be crazy overkill.