Skip to content

Commit

Permalink
sort returned list of files
Browse files Browse the repository at this point in the history
  • Loading branch information
pyth0n1c committed Jul 23, 2024
1 parent 3af1c2e commit 415b1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contentctl/helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_security_content_files_from_directory(path: pathlib.Path, allowedFileExt
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]}")

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

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

0 comments on commit 415b1e1

Please sign in to comment.