Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ rmdir
Method
rmdir
Lib/pathlib/__init__.py:1245–1249 ·
view source on GitHub ↗
Remove this directory. The directory must be empty.
(self)
Source
from the content-addressed store, hash-verified
1243
raise
1244
1245
def
rmdir(self):
1246
""
"
1247
Remove this directory. The directory must be empty.
1248
""
"
1249
os.rmdir(self)
1250
1251
def
_delete(self):
1252
""
"
Callers
15
_rmtree_unsafe
Function · 0.80
_rmtree_safe_fd_step
Function · 0.80
remove_folder
Method · 0.80
remove_folder
Method · 0.80
test_getoutput
Method · 0.80
_del_pkg
Method · 0.80
test_ismount_non_existent
Method · 0.80
test_realpath_repeated_indirect_symlinks
Method · 0.80
test_realpath_deep_recursion
Method · 0.80
test_realpath_resolve_parents
Method · 0.80
test_realpath_resolve_before_normalizing
Method · 0.80
test_realpath_resolve_first
Method · 0.80
Calls
no outgoing calls
Tested by
15
test_getoutput
Method · 0.64
_del_pkg
Method · 0.64
test_ismount_non_existent
Method · 0.64
test_realpath_repeated_indirect_symlinks
Method · 0.64
test_realpath_deep_recursion
Method · 0.64
test_realpath_resolve_parents
Method · 0.64
test_realpath_resolve_before_normalizing
Method · 0.64
test_realpath_resolve_first
Method · 0.64
test_realpath_unreadable_directory
Method · 0.64
cleanout
Function · 0.64
test_isdir
Method · 0.64
test_isfile
Method · 0.64