truename
truename(t_string) =>t_truename
Description
Tries to find the specified file (t_string) and returns the full path to the file.
It uses the current SKILL path for relative paths. A path that is anchored to the current directory, for example, ./, ../, or ../../.., and so on, is not considered as a relative path.
Arguments
Value Returned
Examples
getSkillPath()
=> ("." "~")
setSkillPath(append1(getSkillPath() "~/skill"))
=> nil
getSkillPath()
=> ("." "~" "~/skill")
getWorkingDir()
=> "/home/skillproj/work"
truename("./runtest")
=> "/home/skillproj/work/runtest"
truename("mycode.il")
=> "/home/skillproj/skill/mycode.il"
truename(".cshrc")
=> "/home/skillproj/.cshrc"
truename("~/old/code.il")
=> nil ; this file/directory does not exist
Related Topics
Return to top