Closed joshuabaker closed 9 years ago
octdec() method is required as octals and decimals are different. It may also be wise to leave permissions as they are if they don’t need to be changed.
Slight, further adjustment...
if ( octdec(substr(sprintf('%o', fileperms( $dir )), -4)) < $perms ) { return @chmod( $dir , $perms ); }
octdec() method is required as octals and decimals are different. It may also be wise to leave permissions as they are if they don’t need to be changed.