Manual:$wgDirectoryMode

Details
Default value for chmoding of new directories.

For example, this is used by wfMkdirParents to create image directories.