parameters: (self, fileobj)
return_statement: return False
docstring: Check whether file is within the directory or its subdirectories.
docstring_summary: Check whether file is within the directory or its subdirectories.
docstring_tokens: Check whether file is within the directory or its subdirectories .
function: def contains(self, fileobj):
          """Check whether file is within the directory or its subdirectories."""
          dirobj = fileobj.get_directory()
          while dirobj:
              if dirobj == self:
                  return True
              dirobj = dirobj._parent
          return False
function_tokens: def contains ( self , fileobj ) : dirobj = fileobj . get_directory ( ) while dirobj : if dirobj == self : return True dirobj = dirobj . _parent return False