code: def path_only_contains_dirs(self, path):
          
          pathlistdir = os.listdir(path)
          if pathlistdir == []:
              return True
          if any(os.path.isfile(os.path.join(path, i)) for i in pathlistdir):
              return False
          return all(self.path_only_contains_dirs(os.path.join(path, i)) for i in pathlistdir)
docs: Return boolean on whether a path only contains directories.