Set fileperms on cover files as well - so that these are owned by audio group
This commit is contained in:
@@ -232,7 +232,7 @@ void UmsDevice::addSong(const Song &s, bool overwrite)
|
||||
|
||||
KUrl dest(destFile);
|
||||
QDir dir(dest.directory());
|
||||
if(!dir.exists() && !Device::createDir(dir.absolutePath(), QString())) {
|
||||
if(!dir.exists() && !Utils::createDir(dir.absolutePath(), QString())) {
|
||||
emit actionStatus(DirCreationFaild);
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ void UmsDevice::copySongTo(const Song &s, const QString &baseDir, const QString
|
||||
currentMusicPath=musicPath;
|
||||
KUrl dest(currentBaseDir+currentMusicPath);
|
||||
QDir dir(dest.directory());
|
||||
if (!dir.exists() && !Device::createDir(dir.absolutePath(), baseDir)) {
|
||||
if (!dir.exists() && !Utils::createDir(dir.absolutePath(), baseDir)) {
|
||||
emit actionStatus(DirCreationFaild);
|
||||
return;
|
||||
}
|
||||
@@ -374,7 +374,7 @@ void UmsDevice::copySongToResult(KJob *job)
|
||||
if (needToFixVa) {
|
||||
Device::fixVariousArtists(currentBaseDir+currentSong.file, currentSong, false);
|
||||
}
|
||||
Device::setFilePerms(currentBaseDir+currentSong.file);
|
||||
Utils::setFilePerms(currentBaseDir+currentSong.file);
|
||||
MusicLibraryModel::self()->addSongToList(currentSong);
|
||||
DirViewModel::self()->addFileToList(currentSong.file);
|
||||
emit actionStatus(Ok);
|
||||
|
||||
Reference in New Issue
Block a user