예제 #1
0
 def is_file(self, path: PATH_TYPES) -> bool:
     """Check whether the provided path is a file."""
     if not isinstance(path, pathlib.Path):
         path = pathlib.Path(path)
     return path.is_file()
예제 #2
0
파일: s3.py 프로젝트: pypa/bandersnatch
 def is_file(self, path: PATH_TYPES) -> bool:
     if not isinstance(path, self.PATH_BACKEND):
         path = self.PATH_BACKEND(path)
     return bool(path.is_file())