public function setDirectoryCreationMode($mode)
    {
        //force format into octal if a string was received, for example "755" instead of 0755
        if (0 != $mode[0]) {
            $mode = "0".$mode;
        }

        $this->directoryCreationMode = intval($mode, 8);

        return $this;
    }
public function setDirectoryCreationMode($mode)
    {
        //force format into octal if a string was received, for example "755" instead of 0755
        if (0 != $mode[0]) {
            $mode = "0".$mode;
        }

        $this->directoryCreationMode = intval($mode, 8);

        return $this;
    }
public function setDirectoryCreationMode ( $ mode ) { //force format into octal if a string was received, for example "755" instead of 0755 if ( 0 != $ mode [ 0 ] ) { $ mode = "0" . $ mode ; } $ this -> directoryCreationMode = intval ( $ mode , 8 ) ; return $ this ; }
Set the file creation mode to use when new directories are created during a transcode process.

Note you can set the property as either a string or octal int, but it will always be converted to the octal format required by `chmod`

@param  string|int $mode
@return self
Set the file creation mode to use when new directories are created during a transcode process .