RJT1990/mantra

Issue with data extraction for a folder with multiple top-of-folder folders

Opened this issue · 0 comments

File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/mantraml/data/Dataset.py", line 288, in extract_file_data
file_hashes = self.get_data_dependency_hashes(is_extract_folder=is_extract_folder, is_hash=is_hash)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/mantraml/data/Dataset.py", line 401, in get_data_dependency_hashes
self.extract_tar_file(file_path)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/mantraml/data/Dataset.py", line 349, in extract_tar_file
os.rename('%sraw/%s' % (self.data_dir, top_level_dir), '%sraw/%s' % (self.data_dir, '.extract'))
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/finalproject/data/horse2zebra/raw/t' -> '/home/ubuntu/finalproject/data/horse2zebra/raw/.extract'