diff options
| author | Muri Nicanor | 2015-12-07 21:40:38 +0100 |
|---|---|---|
| committer | Muri Nicanor | 2015-12-07 21:40:38 +0100 |
| commit | 228ac6e11a3457388aa93af2c589a040773131b7 (patch) | |
| tree | da9f7f220e14ce12fb6f9a84bd02592e7720058c | |
| parent | 1be8f43ec23232d2c8446b9db6c5dd6ce84be512 (diff) | |
added check for readaccess to file
| -rwxr-xr-x | mat-gui | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -330,6 +330,8 @@ non-anonymised) file to output archive')) | |||
| 330 | for item in filelist: | 330 | for item in filelist: |
| 331 | if os.path.splitext(item)[1] in parser.NOMETA: | 331 | if os.path.splitext(item)[1] in parser.NOMETA: |
| 332 | store.append([os.path.basename(item), _('Harmless fileformat')]) | 332 | store.append([os.path.basename(item), _('Harmless fileformat')]) |
| 333 | elif not os.access(item, os.R_OK): | ||
| 334 | store.append([os.path.basename(item), _('Cant read file')]) | ||
| 333 | else: | 335 | else: |
| 334 | store.append([os.path.basename(item), _('Fileformat not supported')]) | 336 | store.append([os.path.basename(item), _('Fileformat not supported')]) |
| 335 | 337 | ||
