|
|
@ -195,7 +195,7 @@ void K3bAudioRipThread::run()
|
|
|
|
TQString& filename = m_tracks[0].second;
|
|
|
|
TQString& filename = m_tracks[0].second;
|
|
|
|
|
|
|
|
|
|
|
|
TQString dir = filename.left( filename.findRev("/") );
|
|
|
|
TQString dir = filename.left( filename.findRev("/") );
|
|
|
|
if( !KStandardDirs::makeDir( dir, 0777 ) ) {
|
|
|
|
if( !TDEStandardDirs::makeDir( dir, 0777 ) ) {
|
|
|
|
d->paranoiaLib->close();
|
|
|
|
d->paranoiaLib->close();
|
|
|
|
emitInfoMessage( i18n("Unable to create directory %1").arg(dir), K3bJob::ERROR );
|
|
|
|
emitInfoMessage( i18n("Unable to create directory %1").arg(dir), K3bJob::ERROR );
|
|
|
|
m_device->block(false);
|
|
|
|
m_device->block(false);
|
|
|
@ -299,7 +299,7 @@ bool K3bAudioRipThread::ripTrack( int track, const TQString& filename )
|
|
|
|
long trackSectorsRead = 0;
|
|
|
|
long trackSectorsRead = 0;
|
|
|
|
|
|
|
|
|
|
|
|
TQString dir = filename.left( filename.findRev("/") );
|
|
|
|
TQString dir = filename.left( filename.findRev("/") );
|
|
|
|
if( !KStandardDirs::makeDir( dir, 0777 ) ) {
|
|
|
|
if( !TDEStandardDirs::makeDir( dir, 0777 ) ) {
|
|
|
|
emitInfoMessage( i18n("Unable to create directory %1").arg(dir), K3bJob::ERROR );
|
|
|
|
emitInfoMessage( i18n("Unable to create directory %1").arg(dir), K3bJob::ERROR );
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -446,7 +446,7 @@ bool K3bAudioRipThread::writePlaylist()
|
|
|
|
// this is an absolut path so there is always a "/"
|
|
|
|
// this is an absolut path so there is always a "/"
|
|
|
|
TQString playlistDir = m_playlistFilename.left( m_playlistFilename.findRev( "/" ) );
|
|
|
|
TQString playlistDir = m_playlistFilename.left( m_playlistFilename.findRev( "/" ) );
|
|
|
|
|
|
|
|
|
|
|
|
if( !KStandardDirs::makeDir( playlistDir ) ) {
|
|
|
|
if( !TDEStandardDirs::makeDir( playlistDir ) ) {
|
|
|
|
emitInfoMessage( i18n("Unable to create directory %1").arg(playlistDir), K3bJob::ERROR );
|
|
|
|
emitInfoMessage( i18n("Unable to create directory %1").arg(playlistDir), K3bJob::ERROR );
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|