def get_object_info(env, app, path=None, swift_source=None):
 (version, account, container, obj) = split_path((path or env['PATH_INFO']), 4, 4, True)
 info = _get_object_info(app, env, account, container, obj, swift_source=swift_source)
 if info:
  info = deepcopy(info)
 else:
  info = headers_to_object_info({}, 0)
 for field in ('length',):
  if (info.get(field) is None):
   info[field] = 0
  else:
   info[field] = int(info[field])
 return info

def get_object_info ( env , app , path = None , swift_source = None ) : ( version , account , container , obj ) = split_path ( ( path or env [ 'PATH_INFO' ] ) , 4 , 4 , True ) info = _get_object_info ( app , env , account , container , obj , swift_source = swift_source ) if info : info = deepcopy ( info ) else : info = headers_to_object_info ( { } , 0 ) for field in ( 'length' , ) : if ( info . get ( field ) is None ) : info [ field ] = 0 else : info [ field ] = int ( info [ field ] ) return info
get the info structure for an object .