MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / mkdir

Function mkdir

core/compatible.py:140–155  ·  view source on GitHub ↗

create directory Args: dir: directory path Returns: Name of directory or False

(dir)

Source from the content-addressed store, hash-verified

138
139
140def mkdir(dir):
141 """
142 create directory
143
144 Args:
145 dir: directory path
146
147 Returns:
148 Name of directory or False
149 """
150 if not os.path.exists(dir):
151 try:
152 os.makedirs(dir)
153 except Exception:
154 return False
155 return dir
156
157
158def copy_dir_tree(src, dst, symlinks=True, ignore=None):

Callers 2

create_new_imagesFunction · 0.90
make_tmp_thread_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected