mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
14 lines
379 B
Python
14 lines
379 B
Python
import os
|
|
|
|
class Utils:
|
|
|
|
@staticmethod
|
|
def get_all_yml_files_from_directory(path: str) -> list:
|
|
listOfFiles = list()
|
|
for (dirpath, dirnames, filenames) in os.walk(path):
|
|
for file in filenames:
|
|
if file.endswith(".yml"):
|
|
listOfFiles.append(os.path.join(dirpath, file))
|
|
|
|
return sorted(listOfFiles)
|