code: def from_path(cls, path):
          
          urlparts = urlparse.urlsplit(path)
          site = 'nonlocal'
          if (urlparts.scheme == '' or urlparts.scheme == 'file'):
              if os.path.isfile(urlparts.path):
                  path = os.path.abspath(urlparts.path)
                  path = urlparse.urljoin('file:',
                                          urllib.pathname2url(path)) 
                  site = 'local'
  
          fil = File(os.path.basename(path))
          fil.PFN(path, site)
          return fil
docs: Takes a path and returns a File object with the path as the PFN.