if (items.count() > 0) {
const KUrl& url = items.first().item.url();
- itemStates.insert(url.directory(KUrl::AppendTrailingSlash), items);
+ itemStates.insert(url.directory(KUrl::AddTrailingSlash), items);
}
return index - firstIndex; // number of processed items
{
Q_ASSERT(path.endsWith(QDir::separator()));
- if (path == m_fileName.directory(KUrl::AppendTrailingSlash)) {
+ if (path == m_fileName.directory(KUrl::AddTrailingSlash)) {
return;
}
{
QPair<KFileItem,QString> pair = *it;
- QString subDir = m_view->reducedDir(pair.first.url().directory(KUrl::AppendTrailingSlash));
+ QString subDir = m_view->reducedDir(pair.first.url().directory(KUrl::AddTrailingSlash));
m_itemList.append( KFindItem( pair.first, subDir, pair.second ) );
}
switch( column )
{
case 0:
- return m_fileItem.url().fileName(KUrl::ObeyTrailingSlash);
+ return m_fileItem.url().fileName(KUrl::LeaveTrailingSlash);
case 1:
return m_subDir;
case 2:
while ( nextItem.hasNext() )
{
QRegExp *reg = nextItem.next();
- matched = matched || ( reg == 0L ) || ( reg->exactMatch( file.url().fileName( KUrl::IgnoreTrailingSlash ) ) ) ;
+ matched = matched || ( reg == 0L ) || ( reg->exactMatch( file.url().fileName( KUrl::RemoveTrailingSlash ) ) ) ;
}
if (!matched)
return;
}
kDebug(KIO_MTP) << "Copy file" << src.fileName() << "from filesystem to device"
- << src.directory(KUrl::AppendTrailingSlash) << dest.directory(KUrl::AppendTrailingSlash);
+ << src.directory(KUrl::AddTrailingSlash) << dest.directory(KUrl::AddTrailingSlash);
if (!(flags & KIO::Overwrite) && getPath(dest.path()).first) {
error(ERR_FILE_ALREADY_EXIST, dest.path());
QPair<void*, LIBMTP_mtpdevice_t*> pair = getPath(dest.directory());
if (!pair.first) {
- error(ERR_DOES_NOT_EXIST, dest.directory(KUrl::AppendTrailingSlash));
+ error(ERR_DOES_NOT_EXIST, dest.directory(KUrl::AddTrailingSlash));
return;
}
}
kDebug(KIO_MTP) << "Copy file" << src.fileName() << "from device to filesystem"
- << dest.directory(KUrl::AppendTrailingSlash) << dest.directory(KUrl::AppendTrailingSlash);
+ << dest.directory(KUrl::AddTrailingSlash) << dest.directory(KUrl::AddTrailingSlash);
QFileInfo destination(dest.path());
KonqOperations *KonqOperations::rename( QWidget * parent, const KUrl & oldurl, const QString & name )
{
KUrl newurl( oldurl );
- newurl.setPath( oldurl.directory( KUrl::AppendTrailingSlash ) + name );
+ newurl.setPath( oldurl.directory( KUrl::AddTrailingSlash ) + name );
kDebug(1203) << "KonqOperations::rename("<<name<<") called. newurl=" << newurl;
return rename( parent, oldurl, newurl );
}