On 22:26, mercoledì 21 maggio 2008 zhf wrote:
> I want ro walk a directory and its sub directory on linux
os.path.walk() should do the job.
Recursively you should try this, which I found on some web site:
8<-8<-8<-8<-8<-8<-
def file_find(folder, f
A.T.Hofkamp wrote:
> Escape the space to prevent the shell from interpreting it as a word
> seperator. This of course also holds for all other shell meta characters,
> such as * [ ] \ > < & and a few others I probably have forgotten.
If the command was useful (unlike cd), it might be better to us
On 2008-05-21, zhf <[EMAIL PROTECTED]> wrote:
> I want ro walk a directory and its sub directory on linux,
> to find some shell script file, and run them, but I found some path belong
> blank charactor, such as '8000 dir', if I write as follow, I got error
> "no such file"
> path = '8000 dir'
> for
I want ro walk a directory and its sub directory on linux,
to find some shell script file, and run them, but I found some path belong
blank charactor, such as '8000 dir', if I write as follow, I got error
"no such file"
path = '8000 dir'
for root, dirs, files in os.walk(path):
cmd = ' '
cmd = 'cd '