code: def from_path(path):
          '''
          create from path.
  
          return `None` if path is not exists.
          '''
          if os.path.isdir(path):
              return DirectoryInfo(path)
  
          if os.path.isfile(path):
              return FileInfo(path)
  
          return Nonf from_path(path):
          '''
          create from path.
  
          return `None` if path is not exists.
          '''
          if os.path.isdir(path):
              return DirectoryInfo(path)
  
          if os.path.isfile(path):
              return FileInfo(path)
  
          return None
docs: create from path.
  
          return `None` if path is not exists.