|
|
@ -1171,14 +1171,18 @@ bool KRenameImpl::setupBatchRenamer( BatchRenamer* b, bool preview )
|
|
|
|
|
|
|
|
|
|
|
|
int i = 0;
|
|
|
|
int i = 0;
|
|
|
|
TQString d = "/";
|
|
|
|
TQString d = "/";
|
|
|
|
while (!(d += url.section( "/", i, i, TQString::SectionSkipEmpty)).isEmpty()) { // asignment here!
|
|
|
|
TQString ds = TQString::null;
|
|
|
|
if (!TDEIO::NetAccess::exists(d, false, parent) && !TDEIO::NetAccess::mkdir(d, parent, -1))
|
|
|
|
for (ds = url.section("/", i, i, TQString::SectionSkipEmpty);
|
|
|
|
|
|
|
|
!ds.isEmpty();
|
|
|
|
|
|
|
|
i++, d.append("/"), ds = url.section("/", i, i, TQString::SectionSkipEmpty))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
d += ds;
|
|
|
|
|
|
|
|
if (!TDEIO::NetAccess::exists(d, false, parent) &&
|
|
|
|
|
|
|
|
!TDEIO::NetAccess::mkdir(d, parent, -1))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tqDebug( "Can't create %s", d.latin1() );
|
|
|
|
tqDebug( "Can't create %s", d.latin1() );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
d.append( "/" );
|
|
|
|
|
|
|
|
i++;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|