public function createDirectory(\SplFileInfo $directoryToCreate, $mode = 0775, $recursively = true, $user = null, $group = null, $umask = null)
    {

        // set the umask that is necessary to create the directory
        $this->initUmask($umask);

        // create the directory itself
        FileSystem::createDirectory($directoryToCreate, $mode, $recursively);

        // load the deployment service
        $this->setUserRights($directoryToCreate, $user, $group);
    }