Re: Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?

2009-11-06 Thread Chris Rebert
On Thu, Nov 5, 2009 at 10:49 PM, Gabriel Genellina wrote: > En Fri, 06 Nov 2009 00:53:14 -0300, Chris Rebert > escribió: >> On Thu, Nov 5, 2009 at 7:41 PM, Peng Yu wrote: >>> I looked though the os.path manual. I don't find a function that can >>> test if a path is in a directory or its sub-dire

Re: Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?

2009-11-05 Thread Gabriel Genellina
En Fri, 06 Nov 2009 00:53:14 -0300, Chris Rebert escribió: On Thu, Nov 5, 2009 at 7:41 PM, Peng Yu wrote: I looked though the os.path manual. I don't find a function that can test if a path is in a directory or its sub-directory (recursively). For example, /a/b/c/d is in /a its sub-directo

Re: Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?

2009-11-05 Thread Chris Rebert
On Thu, Nov 5, 2009 at 7:41 PM, Peng Yu wrote: > I looked though the os.path manual. I don't find a function that can > test if a path is in a directory or its sub-directory (recursively). > > For example, /a/b/c/d is in /a its sub-directory (recursively). Could > somebody let me know if such func

Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?

2009-11-05 Thread Peng Yu
I looked though the os.path manual. I don't find a function that can test if a path is in a directory or its sub-directory (recursively). For example, /a/b/c/d is in /a its sub-directory (recursively). Could somebody let me know if such function is available somewhere? -- http://mail.python.org/m