def get_cleaned_paths(reg_exp)
      paths_without_directories = Dir.glob(reg_exp).reject do |f|
        file_ext = File.extname(f)
        disallowed_extensions = [
          '.xcdatamodeld',
          '.xcassets',
          '.framework',
          '.bundle'
        ]

        File.directory?(f) && !disallowed_extensions.include?(file_ext)
      end
      paths = paths_without_directories.map do |f|
        Pathname.new(f).cleanpath.to_s
      end
      paths
    end
def get_cleaned_paths(reg_exp)
      paths_without_directories = Dir.glob(reg_exp).reject do |f|
        file_ext = File.extname(f)
        disallowed_extensions = [
          '.xcdatamodeld',
          '.xcassets',
          '.framework',
          '.bundle'
        ]

        File.directory?(f) && !disallowed_extensions.include?(file_ext)
      end
      paths = paths_without_directories.map do |f|
        Pathname.new(f).cleanpath.to_s
      end
      paths
    end
This method will return an array of files based on the passed regular Exp
 NOTE:- directories will not be included in the array