/doc/sefun/resolve_file


SYNOPSIS

string resolve_file (string file)
string resolve_file (string file, object anchor)

DESCRIPTION

Resolves the filename <file> in respect to the calling object or the given <anchor> object.

This means, for an object "/d/domain/base/obj/zardoz"

      - "/foo"        is returned as "/foo"
      - "~wizard/foo" is returned as "/players/wizard/foo"
      - "+domain/foo" is returned as "/d/domain/foo"
      - "./foo"       is returned as "/d/domain/base/obj/foo"
      - "../foo"      is returned as "/d/domain/base/foo"
This includes all relative path designators (. and ..) being resolved.

The function is automatically used for exits, items and shop articles.


| Home | Applied | Concepts | Efuns | Intro | Lfuns | Lib | LPC | Obj | Prop | Sefuns | Std |

Nightfall@quest.tat.physik.uni-tuebingen.de
Automatically generated on Fri, Aug 2, 1996