Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.DataSource.exists

DataSource.exists(path)[source]

Test if path exists.

Test ifpath exists as (and in this order):

  • a local file.
  • a remote URL that has been downloaded and stored locally in theDataSource directory.
  • a remote URL that has not been downloaded, but is valid andaccessible.
Parameters:

path : str

Can be a local file or a remote URL.

Returns:

out : bool

True ifpath exists.

Notes

Whenpath is an URL,exists will return True if it’s eitherstored locally in theDataSource directory, or is a valid remoteURL.DataSource does not discriminate between the two, the fileis accessible if it exists in either location.

Previous topic

numpy.DataSource.abspath

Next topic

numpy.DataSource.open

  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp