<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def shadow(self,new_root,visitor) : """ Runs through the query, creating a clone directory structure in the new_root. Then applies process"""

        for n in self.walk() :
            sn = n.clone(new_root)
            if n.isdir() :
                visitor.process_dir(n,sn)
            else :
                visitor.process_file(n,sn)