title: Find highest depth when given a file path
body: <p>Let's say I have a file tree that looks like the below image.
  <a href="https://i.stack.imgur.com/XZXzt.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XZXzt.jpg" alt="enter image description here"></a></p>
  
  <p>I have a function that passes through a file path inputted by the user. I want the function to find the highest depth within that path. For example in the image above, the highest depth of the folder 'test' is 3 since it contains folder1 which contains folder11 which contains fileD.txt. </p>
  
  <p>My code:</p>
  
  <pre><code>def depth(path, depth_count=0):
      for item in os.listdir(path):
          try:
              newItem = os.path.join(path, item)
              print(newItem)
              if isdir(newItem):
                  depth_count += 1
              print('Depth is currently: ' + str(depth_count))
              depth(newItem, depth_count)
          except:
              pass
      return 'Highest depth is ' + str(depth_count)
  </code></pre>
  
  <p>I input this into the shell:</p>
  
  <pre><code>depth('C:\\Users\\John\\Documents\\test')
  </code></pre>
  
  <p>The result is this:</p>
  
  <pre><code>C:\Users\John\Documents\test\fileA.txt
  Depth is currently: 0
  C:\Users\John\Documents\test\folder1
  Depth is currently: 1
  C:\Users\John\Documents\test\folder1\fileB.txt
  Depth is currently: 1
  C:\Users\John\Documents\test\folder1\fileC.txt
  Depth is currently: 1
  C:\Users\John\Documents\test\folder1\folder11
  Depth is currently: 2
  C:\Users\John\Documents\test\folder1\folder11\fileD.txt
  Depth is currently: 2
  C:\Users\John\Documents\test\folder2
  Depth is currently: 2
  C:\Users\John\Documents\test\folder2\fileD.txt
  Depth is currently: 2
  C:\Users\John\Documents\test\folder2\fileE.txt
  Depth is currently: 2
  'Highest depth is 2'
  </code></pre>
  
  <p>The issue is that the highest depth should be three not two. Also, this function needs to use recursion and not use os.walk.</p>