ls_mlkit.util.sniffer module

class ls_mlkit.util.sniffer.Sniffer[source]

Bases: object

get_all_by_recursion(directory_path, deep, max_deep)[source]
sniff_file(directory_path, pattern, max_deep=-1)[source]

Get all files in the directory_path that match the pattern :param directory_path: :param pattern: judge whether the pattern is in the filename :param max_deep: :return: full path of the files

sniff_file_by_path_pattern(directory_path, pattern, max_deep=-1)[source]

Get all files in the directory_path that match the pattern :param directory_path: :param pattern: judge whether the pattern is in the filepath :param max_deep: :return: full path of the files