Home Cooker Classes Others Rice CookerGX
Classes  >  directory  >  CreateSubdirectory(string)
directory class : CreateSubdirectory(string) method

Description

Create a subdirectory.

Syntax

directoryInstance.CreateSubdirectory(string subdirectoryName)

Arguments

ClassNameDescription
stringsubdirectoryNameName of the subdirectory.

Return value

ClassDescription
directorySubdirectory that has been created.

Sample code

//anyDirectory is a instance of directory type.

directory subDirectory = anyDirectory.CreateSubdirectory("temp");

Notes

It's a wrapper of the System.IO.DirectoryInfo.CreateSubdirectory(string).

If the subdirectory already exists, this method does nothing.

Links for reference

Copyright © Rice All rights reserved.