**/{arch}
**/_darcs
**/_darcs/**
+**/.intlcache
**/.DS_Store'''
def split_path(path):
return path.split('/')
os.chmod(self.abspath(),val)
def delete(self):
try:
- if getattr(self,'children',None):
+ if hasattr(self,'children'):
shutil.rmtree(self.abspath())
else:
- os.unlink(self.abspath())
+ os.remove(self.abspath())
except OSError:
pass
self.evict()
if[]in nrej:
nacc=[]
return[nacc,nrej]
- ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=25,dir=dir,src=src,remove=kw.get('remove',True))]
+ ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
if kw.get('flat',False):
return' '.join([x.path_from(self)for x in ret])
return ret