self.addAndFetchFileInfo(targetPath, '', {scrollTo: true}).then(function(status, data) {
                        deferred.resolve(status, data);
                    }, function() {
                        OC.Notification.show(t('files', 'Could not create file "{file}"',
                            {file: name}), {type: 'error'}