A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/player/get_path
Name: get_path - get current path from player/complete filename
Syntax:
string get_path(string filename)
Description:
If the filename argument is not given, get_path returns the current
path of the player.
If the filename starts with a '/' (absolute filename), it returns
the normalized filename, that means, it resolves all occurrences of
'../' or './'.
If the filename doesn't start with a '/' (relative filename), it
prepends the current path of the player to the given filename and
returns the normalized version.
Return value: A string containing the new filename.
Examples:
The following calls:
this_player()->get_path();
this_player()->get_path("/lib");
this_player()->get_path("monster");
could return:
"/players/nobody"
"/lib"
"/players/nobody/monster"
See also:
This page was generated in LPC
Imprint / Impressum