d$ = CreateDirectory(path$, dir$[, table])
dir$ in the path specified by
path$. This is basically the same as calling MakeDirectory() but there is
the difference that CreateDirectory() doesn't accept a single path argument containing
both the path and the subdirectory specification but two individual arguments
specifying the directory where to create the new subdirectory and the name of the
subdirectory to be created. It also can't create directories recursively but only
a single directory can be created and it returns the path to the directory just created.
All this makes CreateFile() suitable for use with Android's Storage Access Framework
(SAF) and with MediaStore on Android which both work a little differently than
traditional path specifications. See Working with Android URIs for details.
Note that in contrast to MakeDirectory(), CreateDirectory() will fail if the
directory already exists.
CreateDirectory() also accepts an optional table argument which can be used to
pass additional parameters. The following table elements are currently recognized:
Adapter:
UserTags: