tumourkit.utils.pipes.check_same_num

tumourkit.utils.pipes.check_same_num(dir_list: List[str]) bool

Checks if all the folders in the list contain the same number of files.

This function takes a list of folder paths and checks if all the folders contain the same number of files. It counts the number of files in each folder and compares them. If the number of files is the same for all folders, the function returns True. Otherwise, it returns False.

Parameters:

dir_list (List[str]) – The list of folder paths.

Returns:

True if all folders contain the same number of files, False otherwise.

Return type:

bool