(self, path: PATH_TYPES)
return path.is_file()
Check whether the provided path is a file.
Check whether the provided path is a file.
Check whether the provided path is a file .
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()
def is_file ( self , path : PATH_TYPES ) -> bool : if not isinstance ( path , pathlib . Path ) : path = pathlib . Path ( path ) return path . is_file ( )