Is there a function that can test if a path is in a directory or oneof its sub-directory (recursivel

Discussion in 'Python' started by Peng Yu, Nov 6, 2009.

  1. Peng Yu

    Peng Yu Guest

    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?
     
    Peng Yu, Nov 6, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Raseliarison nirinA
    Replies:
    0
    Views:
    621
    Raseliarison nirinA
    Jul 21, 2003
  2. Replies:
    4
    Views:
    380
    Jonathan N. Little
    Jan 26, 2007
  3. Ben
    Replies:
    2
    Views:
    954
  4. weafon
    Replies:
    1
    Views:
    339
    Diez B. Roggisch
    Jul 14, 2009
  5. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    2,165
    Lawrence D'Oliveiro
    May 20, 2011
Loading...

Share This Page