Nasal library/os.path: Difference between revisions

Jump to navigation Jump to search
m
→‎Class: .new: Add Unix example
No edit summary
m (→‎Class: .new: Add Unix example)
Line 19: Line 19:
|param1 = path
|param1 = path
|param1text = A string pointing to a filepath.
|param1text = A string pointing to a filepath.
|example1 = # Note: This is a Windows filepath
|example1 = var path = os.path.new("C:/Windows"); # A Windows filepath
var path = os.path.new("C:/Windows");
# var path = os.path.new("/usr/bin/"); # A Unix filepath
print(path.realpath);
print(path.realpath);
}}
}}

Navigation menu