def is_readable_gs_handle(gs_handle):
 try:
  with files.open(gs_handle) as bak_file:
   bak_file.read(1)
 except files.PermissionDeniedError:
  return False
 return True

def is_readable_gs_handle ( gs_handle ) : try : with files . open ( gs_handle ) as bak_file : bak_file . read ( 1 ) except files . PermissionDeniedError : return False return True
return true if the application can read the specified gs_handle .