def _find_files(metadata):
 ret = {}
 for (bucket, data) in six.iteritems(metadata):
  if (bucket not in ret):
   ret[bucket] = []
  filePaths = [k['Key'] for k in data]
  ret[bucket] += [k for k in filePaths if (not k.endswith('/'))]
 return ret

def _find_files ( metadata ) : ret = { } for ( bucket , data ) in six . iteritems ( metadata ) : if ( bucket not in ret ) : ret [ bucket ] = [ ] filePaths = [ k [ 'Key' ] for k in data ] ret [ bucket ] += [ k for k in filePaths if ( not k . endswith ( '/' ) ) ] return ret
return a list of paths to all modules below the given directory .