I just want a function ,to list all file include subdirs of a directory
It seems something to do with local vars?
and I searched in forum, but forum says my key words are too common to search
so anyone can help me ?
Thanks
Maybe this:
http://newlispfanclub.alh.net/forum/viewtopic.php?f=5&t=112&p=586&hilit=filelist#p586
No ...
I think i's not
as far as I can see the way is
(exec "find . -type -f")
I just want do it in newlisp way
This is shown in CodePatterns (//http) under Walking A Directory Tree in section 5.
See also //https://en.wikibooks.org/wiki/Introduction_to_newLISP/Working_with_files.
Thanks guys
It's weired and failed , when I did not use (append) to do this iter
anyway thanks
BTW
is there a function
replace a string in a string ,but never change the orginal string ?
newlisp's replace is just edit the orginal string
Use the (copy ) function on the string.
(replace "hello" (copy x) "goodbye")