This project is archived. Its data is read-only. This project is read-only.
IOError when using "--backup"
First thank you for the work on "mat" :-) The "--backup" option throws an IOError `python2.7 /home/gregor/Downloads/0000/mat.git/mat --backup Photo-2017-03-18-11-21-21_0210.JPG` ``` [*] Cleaning Photo-2017-03-18-11-21-21_0210.JPG Traceback (most recent call last): File "/home/gregor/Downloads/0000/mat.git/mat", line 160, in <module> main() File "/home/gregor/Downloads/0000/mat.git/mat", line 152, in main ret += func(class_file, filename, args.add2archive) File "/home/gregor/Downloads/0000/mat.git/mat", line 96, in clean_meta if class_file.remove_all(): File "/home/gregor/Downloads/0000/mat.git/libmat/exiftool.py", line 29, in remove_all self.create_backup_copy() File "/home/gregor/Downloads/0000/mat.git/libmat/parser.py", line 54, in create_backup_copy shutil.copy2(self.filename, os.path.join(self.filename, '.bak')) File "/usr/lib/python2.7/shutil.py", line 130, in copy2 copyfile(src, dst) File "/usr/lib/python2.7/shutil.py", line 83, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 20] Not a directory: 'Photo-2017-03-18-11-21-21_0210.JPG/.bak' ``` Used Version: cloned from git seconds before, commit feea5a7962c86625d1cb198dcd2de0bc939728a9 Environment: * Arch Linux (4.10.3-1-ARCH) * Python 2.7.13
issue