I don't know why but in the last few weeks I have seen a growing number of extension developers write code like this.
if (!is_dir($dstdir)) {
mkdir($dstdir);
chmod($dstdir, 0777);
}
It is hard enough educating users not to do this without extension developers doing it for them.