import os
      
      os.path.isfile('/path/to/check')

      Python language logoCheck path is a file

      Python public recipes

      This code checks to see if the file '/path/to/check' exists.

      Shortcut: file.isfile

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.