def FileExists(fname):
 import os
 try:
  os.stat(fname)
  return 1
 except os.error as details:
  return 0

def FileExists ( fname ) : import os try : os . stat ( fname ) return 1 except os . error as details : return 0
returns true if a given s3 key exists .