import os
      
      os.path.isdir(path)
      Python language logo

      Check if a file is a directory

      Python public recipes

      The os.path.isdir function tests to see if the given path is a directory. If the path is a directory, then the return value is true.

      Shortcut: file.isdir

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.