From dafaa83de3901420579b252a65702dc9a2252a9e Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 25 Jul 2020 10:11:24 +0200 Subject: Add checking that destination directory is writable --- mageiaSync/mageiasync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py index 1110607..330ceef 100644 --- a/mageiaSync/mageiasync.py +++ b/mageiaSync/mageiasync.py @@ -539,6 +539,9 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow): if (not dest.exists()) or (not dest.isDir()): self.lvMessage(self.tr("/!\ Local directory {} doesn't exists or isn't accessible. Check mounts or settings.").format(self.destination)) return + if not dest.isWritable(): + self.lvMessage(self.tr("/!\ Local directory {} isn't writable")) + return self.IprogressBar.setEnabled(True) self.stop.setEnabled(True) self.syncGo.setEnabled(False) -- cgit v1.2.1