Nasal library/os.path: Difference between revisions

Jump to navigation Jump to search
m
Doc isNull()
(More doc)
m (Doc isNull())
Line 120: Line 120:
==== isAbsolute() ====
==== isAbsolute() ====
{{Nasal doc
{{Nasal doc
|syntax = os.path.isDir();
|syntax = os.path.isAbsolute();
|text = Returns 1 (true) if the path is an absolute path and 0 (false) if it is not.
|text = Returns 1 (true) if the path is an absolute path and 0 (false) if it is not.
|example1 = var path = os.path.new(getprop("sim/fg-root"));
|example1 = var path = os.path.new(getprop("sim/fg-root"));
Line 126: Line 126:
}}
}}
==== isNull() ====
==== isNull() ====
{{Nasal doc
|syntax = os.path.isNull();
|text = Returns 1 (true) if the path is null and 0 (false) if it is not.
|example1 = var path = os.path.new();
print(path.isNull());
}}
==== create_dir() ====
==== create_dir() ====
==== remove() ====
==== remove() ====

Navigation menu