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
list all in directory
Re: list all in directory
Hans-Peter
Re: list all in directory
No ...
I think i's not
I think i's not
Re: list all in directory
as far as I can see the way is
(exec "find . -type -f")
I just want do it in newlisp way
(exec "find . -type -f")
I just want do it in newlisp way
Re: list all in directory
This is shown in CodePatterns under Walking A Directory Tree in section 5.
-
- Posts: 2038
- Joined: Tue Nov 29, 2005 8:28 pm
- Location: latiitude 50N longitude 3W
- Contact:
Re: list all in directory
Thanks guys
It's weired and failed , when I did not use (append) to do this iter
anyway thanks
It's weired and failed , when I did not use (append) to do this iter
anyway thanks
Re: list all in directory
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
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
Re: list all in directory
Use the (copy ) function on the string.
Code: Select all
(replace "hello" (copy x) "goodbye")