method
Test if path exists.
Test if path exists as (and in this order):
DataSource directory.Can be a local file or a remote URL.
True if path exists.
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.
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.lib.npyio.DataSource.exists.html