(files: List[Tuple[str, str]])
Takes in a list of tuples of (src, dst) paths and copies files.
    Will create all necessary directories.
Takes in a list of tuples of (src, dst) paths and copies files.
    Will create all necessary directories.
Takes in a list of tuples of ( src dst ) paths and copies files . Will create all necessary directories .
def copy_files_and_create_dirs(files: List[Tuple[str, str]]) -> None:
    """Takes in a list of tuples of (src, dst) paths and copies files.
    Will create all necessary directories."""
    for file in files:
        target_dir_name = os.path.dirname(file[1])

        # will create all intermediate-level directories
        if not os.path.exists(target_dir_name):
            os.makedirs(target_dir_name)

        shutil.copyfile(file[0], file[1])
def copy_files_and_create_dirs ( files : List [ Tuple [ str , str ] ] ) -> None : for file in files : target_dir_name = os . path . dirname ( file [ 1 ] ) # will create all intermediate-level directories if not os . path . exists ( target_dir_name ) : os . makedirs ( target_dir_name ) shutil . copyfile ( file [ 0 ] , file [ 1 ] )