Nasal library functions: Difference between revisions

Jump to navigation Jump to search
(actually no, I do it in my own namespace)
Line 106: Line 106:


e.g. chatter_list = directory( chatter_dir );
e.g. chatter_list = directory( chatter_dir );
Example :
<syntaxhighlight lang="nasal" enclose="div">
var currentPath = "/home/xxx/yyy/";
print (directory(currentPath));
</syntaxhighlight>
returns :
:"."
:".."
:"file1"
:"file2"
:"file3"
To delete the "." and ".." see the subvec() function.
== open() ==
== open() ==
== read() ==
== read() ==
29

edits

Navigation menu