Closed shijiegu closed 2 years ago
~/anaconda3/envs/rec_to_nwb/lib/python3.7/site-packages/rec_to_binaries/trodes_data.py in _extract_rec_generic(self, export_cmd, export_dir_ext, dates, epochs, export_args, overwrite, stop_error, use_folder_date, parallel_instances, use_day_config) 1368 if os.path.exists(out_epoch_dir): 1369 if overwrite: -> 1370 shutil.rmtree(out_epoch_dir) 1371 else: 1372 raise TrodesDataFormatError( ~/anaconda3/envs/rec_to_nwb/lib/python3.7/shutil.py in rmtree(path, ignore_errors, onerror) 496 os.rmdir(path) 497 except OSError: --> 498 onerror(os.rmdir, path, sys.exc_info()) 499 else: 500 try: ~/anaconda3/envs/rec_to_nwb/lib/python3.7/shutil.py in rmtree(path, ignore_errors, onerror) 494 _rmtree_safe_fd(fd, path, onerror) 495 try: --> 496 os.rmdir(path) 497 except OSError: 498 onerror(os.rmdir, path, sys.exc_info()) OSError: [Errno 39] Directory not empty: '/opt/stelmo/shijie/recording_pilot/molly/preprocessing/20220415/20220415_molly_02_SeqSession1.time'