Nasal library/os.path: Difference between revisions

Jump to navigation Jump to search
Start realpath doc
(Doc rename())
(Start realpath doc)
Line 167: Line 167:
}}
}}
==== realpath ====
==== realpath ====
{{Nasal doc
|syntax = os.path.realpath;
|text = A variable that is a string and gives the full file path. This should only be used when the path is an absolute path.
|example1 = var path = os.path.new(getprop("/sim/fg-home"));
print(path.realpath); # prints the absolute path of $FG_HOME
}}
==== file ====
==== file ====
==== dir ====
==== dir ====

Navigation menu