bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _datasource / Repository / exists
function
numpy.lib._datasource:Repository.exists
source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_datasource.py :616
Signature
def exists ( self , path ) Summary
Test if path exists prepending Repository base URL to path.
Extended Summary
Test if path exists as (and in this order):
a local file.
a remote URL that has been downloaded and stored locally in the DataSource directory.
a remote URL that has not been downloaded, but is valid and accessible.
Parameters
path: str or pathlib.PathCan be a local file or a remote URL. This may, but does not have to, include the
baseurlwith which the Repository was initialized.
Returns
out: boolTrue if
pathexists.
Notes
When path is an URL, exists will return True if it's either stored locally in the DataSource directory, or is a valid remote URL. DataSource does not discriminate between the two, the file is accessible if it exists in either location.
Aliases
-
numpy.lib._datasource.Repository.exists