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?