Skip to content

Commit 415b1e1

Browse files
committed
sort returned list of files
1 parent 3af1c2e commit 415b1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contentctl/helper/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_security_content_files_from_directory(path: pathlib.Path, allowedFileExt
7676
raise Exception(f"The following files are not allowed in the directory '{path}'. Only files with the extensions {allowedFileExtensions} are allowed:{[str(filePath) for filePath in erroneousFiles]}")
7777

7878
# There were no errorneous files, so return the requested files
79-
return [filePath for filePath in allowedFiles if filePath.suffix in fileExtensionsToReturn]
79+
return sorted([filePath for filePath in allowedFiles if filePath.suffix in fileExtensionsToReturn])
8080

8181
@staticmethod
8282
def get_all_yml_files_from_directory_one_layer_deep(path: str) -> list[pathlib.Path]:

0 commit comments

Comments
 (0)