MCPcopy Create free account
hub / github.com/ipython/ipython / _writable_dir

Function _writable_dir

IPython/utils/path.py:25–27  ·  view source on GitHub ↗

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

(path)

Source from the content-addressed store, hash-verified

23fs_encoding = sys.getfilesystemencoding()
24
25def _writable_dir(path):
26 """Whether `path` is a directory, to which the user has write access."""
27 return os.path.isdir(path) and os.access(path, os.W_OK)
28
29if sys.platform == 'win32':
30 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