code: def _getFilesInDirectory(directory, postfix=""):
      fileNames = [
          s
          for s in os.listdir(directory)
          if not os.path.isdir(os.path.join(directory, s))
      ]
      if not postfix or postfix == "":
          return fileNames
      else:
          return [s for s in fileNames if s.lower().endswith(postfix)]
  
file_path: CNTK/Examples/Image/Detection/utils/annotations/annotations_helper.py
imports: import numpy
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _getFilesInDirectory(directory, postfix) and returns: fileNames, unknown