import os
from shutil import copyfile
exps_dir = '/home/rgunti/data/Thesis/experiments'
target_dir = '/home/rgunti/data/Thesis/les_bkp'

for dir in os.listdir(exps_dir):
    if not '6' in dir:
        continue
    copyfile(os.path.join(exps_dir, dir, 'les.pkl'), os.path.join(target_dir, dir + '.pkl'))
    # break
import os
from shutil import copyfile
exps_dir = '/home/rgunti/data/Thesis/experiments'
target_dir = '/home/rgunti/data/Thesis/les_bkp'

for dir in os.listdir(exps_dir):
    if not '6' in dir:
        continue
    copyfile(os.path.join(exps_dir, dir, 'les.pkl'), os.path.join(target_dir, dir + '.pkl'))
    # break