Is there a python method to validate existence of file or URL?

Viewed 1743

I'm writing a Python script that needs to validate existence of a file. The file can be either a full path like /home/xxx/file.txt or a URL http://company.com/xxx/file.txt.

Is there a python method that can validate existence of various schema of path?

3 Answers
Related