Skip to content

Commit 0d8869b

Browse files
authored
Update 593-file-mkdir.markdown
1 parent c8461bb commit 0d8869b

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

_build/reference/593-file-mkdir.markdown

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
> MKDIR dir
44
5-
Create a directory.
5+
Creates the directory `dir`. `dir` is a string representing a valid directory name. `dir` can additionally contain a path. Without a path, the directory will be created in the current working directory. Errors can be catched using TRY ... CATCH.
6+
7+
### Example 1
8+
9+
```
10+
mkdir "test"
11+
mkdir "C:\\test" ' In Windows use \\ instead of \
12+
```
13+
14+
### Example 2: Use TRY ... CATCH
15+
16+
```
17+
' Run this program two times to get the error messege "FILE EXISTS"
18+
try
19+
mkdir "test"
20+
catch err
21+
print err
22+
end try
23+
```
24+
625

726

0 commit comments

Comments
 (0)