29
edits
(→ceil()) |
|||
Line 147: | Line 147: | ||
Example : | Example : | ||
<syntaxhighlight lang="nasal" enclose="div"> | <syntaxhighlight lang="nasal" enclose="div"> | ||
var | var FGRoot = getprop("/sim/fg-root"); | ||
var filename = "/Aircraft"; | |||
var path = FGRoot ~ filename; | |||
var path_files = directory(FGRoot ~ filename); | |||
foreach(var key; path_files) { | |||
print(key); | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
returns : | |||
returns : | '''"." , ".." , "Generic", "Instruments", "Instruments-3d", "c172p", "ufo"''' | ||
To delete the "." and ".." see the subvec() function. | To delete the "." and ".." see the subvec() function. |
edits