MCPcopy Index your code
hub / github.com/ipython/ipython / _writable_dir

Function _writable_dir

IPython/utils/path.py:24–26  ·  view source on GitHub ↗

Whether `path` is a directory, to which the user has write access.

(path: str)

Source from the content-addressed store, hash-verified

22fs_encoding = sys.getfilesystemencoding()
23
24def _writable_dir(path: str) -> bool:
25 """Whether `path` is a directory, to which the user has write access."""
26 return os.path.isdir(path) and os.access(path, os.W_OK)
27
28if sys.platform == 'win32':
29 def _get_long_path_name(path):

Callers 5

get_ipython_dirFunction · 0.90
get_ipython_cache_dirFunction · 0.90
get_home_dirFunction · 0.85
get_xdg_dirFunction · 0.85
get_xdg_cache_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…