From 228ac6e11a3457388aa93af2c589a040773131b7 Mon Sep 17 00:00:00 2001 From: Muri Nicanor Date: Mon, 7 Dec 2015 21:40:38 +0100 Subject: added check for readaccess to file --- mat-gui | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mat-gui b/mat-gui index f481b07..45b0cdd 100755 --- a/mat-gui +++ b/mat-gui @@ -330,6 +330,8 @@ non-anonymised) file to output archive')) for item in filelist: if os.path.splitext(item)[1] in parser.NOMETA: store.append([os.path.basename(item), _('Harmless fileformat')]) + elif not os.access(item, os.R_OK): + store.append([os.path.basename(item), _('Cant read file')]) else: store.append([os.path.basename(item), _('Fileformat not supported')]) -- cgit v1.3