:orphan:
# PetscMkdir
Create a directory 
## Synopsis
```
PetscErrorCode PetscMkdir(const char dir[])
```
Not Collective


## Input Parameter

- ***dir -*** the directory name





## See Also
 `PetscMktemp()`, `PetscRMTree()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/fileio/fdir.c.html#PetscMkdir">src/sys/fileio/fdir.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/fileio/fdir.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
