MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / rmdir

Method rmdir

Algorithmia/CLI.py:146–155  ·  view source on GitHub ↗
(self, path, client, force=False)

Source from the content-addressed store, hash-verified

144
145 # algo rmdir <path>
146 def rmdir(self, path, client, force=False):
147 # remove a dir in data collection
148
149 Dir = client.dir(path)
150
151 try:
152 if Dir.exists():
153 Dir.delete(force)
154 except Algorithmia.errors.DataApiError as e:
155 print(e)
156
157 def rm(self, path, client):
158

Callers 6

mainFunction · 0.80
deleteMethod · 0.80
test_lsMethod · 0.80
test_mkdirMethod · 0.80
test_rmdirMethod · 0.80
tearDownMethod · 0.80

Calls 3

dirMethod · 0.45
existsMethod · 0.45
deleteMethod · 0.45

Tested by 4

test_lsMethod · 0.64
test_mkdirMethod · 0.64
test_rmdirMethod · 0.64
tearDownMethod · 0.64