mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kioslave: abort on chmod() job error in trash slave tests
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5947aa8294
commit
047b7f68c7
1 changed files with 6 additions and 3 deletions
|
@ -122,11 +122,14 @@ static void removeDirRecursive( const QString& dir )
|
|||
KFileItemList fileItemList;
|
||||
fileItemList.append( fileItem );
|
||||
KIO::ChmodJob* chmodJob = KIO::chmod( fileItemList, 0200, 0200, QString(), QString(), true /*recursive*/, KIO::HideProgressInfo );
|
||||
KIO::NetAccess::synchronousRun( chmodJob, 0 );
|
||||
if (!KIO::NetAccess::synchronousRun(chmodJob, 0)) {
|
||||
kFatal() << "Couldn't chmod " << dir << KIO::NetAccess::lastError() << KIO::NetAccess::lastErrorString();
|
||||
}
|
||||
|
||||
KIO::Job* delJob = KIO::del(u, KIO::HideProgressInfo);
|
||||
if (!KIO::NetAccess::synchronousRun(delJob, 0))
|
||||
kFatal() << "Couldn't delete " << dir ;
|
||||
if (!KIO::NetAccess::synchronousRun(delJob, 0)) {
|
||||
kFatal() << "Couldn't delete " << dir << KIO::NetAccess::lastError() << KIO::NetAccess::lastErrorString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue