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

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

        return $this;
    }