Every line of 'mkdir ignore if exists' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
146 def mkdirs(*args: Path) -> None: 147 for dir in args: 148 dir.mkdir(parents=True, exist_ok=True)
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
39 def mkdir(*args, **kwargs): 40 """ 41 Create the specified directory. 42 Tolerant of race conditions. 43 44 :param args: path[, mode] that goes to os.makedirs 45 :param kwargs: path 46 :return: 47 """ 48 try: 49 os.makedirs(*args, **kwargs) 50 except OSError, e: 51 if e.errno != errno.EEXIST: 52 raise
248 def mkdir(path: AnyStr, mode: int = 0o777) -> None: pass