Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ exists
Method
exists
src/_pytest/_py/path.py:126–127 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
124
return
S_ISREG(self._stat().mode)
125
126
def
exists(self):
127
return
self._stat()
128
129
def
link(self):
130
st = self.path.lstat()
Callers
15
main
Function · 0.45
set_log_path
Method · 0.45
cleanup_dead_symlinks
Function · 0.45
cleanup_numbered_dir
Function · 0.45
import_path
Function · 0.45
safe_exists
Function · 0.45
get_last_failed_paths
Method · 0.45
getbasetemp
Method · 0.45
find_spec
Method · 0.45
pypkgpath
Method · 0.45
path
Method · 0.45
get_common_ancestor
Function · 0.45
Calls
1
_stat
Method · 0.95
Tested by
15
test_lastfailed_creates_cache_when_needed
Method · 0.36
test_does_not_create_boilerplate_in_existing_dirs
Function · 0.36
test_make_cachedir_cleans_up_on_base_exception
Function · 0.36
test_stepwise_xdist_dont_store_lastfailed
Function · 0.36
test_disabled_stepwise_xdist_dont_clear_cache
Function · 0.36
subst_path_windows
Function · 0.36
test_strict_xfail
Method · 0.36
test_orphaned_pyc_file
Method · 0.36
test_getbasetemp_custom_removes_old
Method · 0.36
test_mktemp
Function · 0.36
test_make
Method · 0.36
test_lock_register_cleanup_removal
Method · 0.36