suve

awful: function: file-expand-name

Available since rev.36 (v.0.5.0).

Declaration

string :file-expand-name ( string $FILEPATH )

Summary

For given file name, returns the full path to the file - drive letter (on Windows), all directories, and the filename.
String type (ASCII/UTF-8) matches the argument type.

Example

# :file-expand-name example.
:set &i i0
!while :lt $i :param-cnt
    :writeln $i s'. Name: ' :param-str $i
    :writeln $i s'. Path: ' :file-expand-name :param-str $i
    :add &i i1
!done

wikipage modified on 2014/0601/2317