Nasal library/os.path: Difference between revisions

Jump to navigation Jump to search
→‎create_dir(): Document the method
No edit summary
(→‎create_dir(): Document the method)
Line 133: Line 133:
}}
}}
==== create_dir() ====
==== create_dir() ====
{{Nasal doc
|syntax = os.path.create_dir();
|text = Create the parent of the path as a directory. This will only work if the path is absolute and considered as writable by [https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/Main/util.cxx#l142 fgValidatePath()] (typically okay under [[$FG_HOME]]/Export).
|example1 = var p = os.path.new("/dir/to/create/dummy");
p.create_dir();  # This creates the directory /dir/to/create
}}
==== remove() ====
==== remove() ====
==== rename() ====
==== rename() ====
377

edits

Navigation menu