aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-07-25 10:11:24 +0200
committerPapoteur <papoteur@mageia.org>2020-07-25 10:11:24 +0200
commitdafaa83de3901420579b252a65702dc9a2252a9e (patch)
tree15ffd0474773dc211ffc4784166384ba1f498460
parentbeddf562449e1c896e87200ae669fdcb508e3ed1 (diff)
downloadMageiaSync-dafaa83de3901420579b252a65702dc9a2252a9e.tar
MageiaSync-dafaa83de3901420579b252a65702dc9a2252a9e.tar.gz
MageiaSync-dafaa83de3901420579b252a65702dc9a2252a9e.tar.bz2
MageiaSync-dafaa83de3901420579b252a65702dc9a2252a9e.tar.xz
MageiaSync-dafaa83de3901420579b252a65702dc9a2252a9e.zip
Add checking that destination directory is writable
-rw-r--r--mageiaSync/mageiasync.py3
1 files changed, 3 insertions, 0 deletions
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)