parameters: (self, target_directory)
return_statement: return sorted(directory.contents)
docstring: Returns a sorted list of filenames in target_directory.
  
      Args:
        target_directory:  path to the target directory within the fake
          filesystem
  
      Returns:
        a sorted list of file names within the target directory
  
      Raises:
        OSError:  if the target is not a directory
docstring_summary: Returns a sorted list of filenames in target_directory.
docstring_tokens: Returns a sorted list of filenames in target_directory .
function: def listdir(self, target_directory):
      """Returns a sorted list of filenames in target_directory.
  
      Args:
        target_directory:  path to the target directory within the fake
          filesystem
  
      Returns:
        a sorted list of file names within the target directory
  
      Raises:
        OSError:  if the target is not a directory
      """
      target_directory = self.filesystem.ResolvePath(target_directory)
      directory = self._ConfirmDir(target_directory)
      return sorted(directory.contents)
function_tokens: def listdir ( self , target_directory ) : target_directory = self . filesystem . ResolvePath ( target_directory ) directory = self . _ConfirmDir ( target_directory ) return sorted ( directory . contents )