HOW TO CHECK IF A FILE EXISTS IN PYTHON?

Home Forums Python Course Forum File Handling HOW TO CHECK IF A FILE EXISTS IN PYTHON?

Viewing 0 reply threads
  • Author
    Posts
    • H2k Infosys
      Keymaster
      (124.123.164.108)

      The Python exists () function is used to check the existence of a specific file or directory. It is also used to determine if a URL refers to an open file description. It returns the true, for the Boolean value of the file and returns otherwise if false. It is used by os module and sub.mod os.path as os.path.exists (path).

      #18497

Viewing 0 reply threads
  • You must be logged in to reply to this topic.