get_sv_files_from_directory¶
- HSTB.kluster.modules.svcorrect.get_sv_files_from_directory(dir_path, search_subdirs=True)¶
Returns a list of all files that have an extension in the global variable supported_file_formats
Disable search_subdirs if you want to only search the given folder, not subfolders
- Parameters
dir_path (
str) – string, path to the parent directory containing sv filessearch_subdirs (
bool) – bool, if True searches all subfolders as well
- Returns
full file paths to all sv files with approved file extension
- Return type
list