Parameter |
Description |
Settings |
---|---|---|
directory |
Specifies a directory or directory and its path. |
The value is a string of case-insensitive characters in the [ drive ] [ path ] directory format. The absolute path length ranges from 1 to 64, while the directory name length ranges from 1 to 15. In the preceding parameter, drive specifies the storage device name, and path specifies the directory and subdirectory. The directory name cannot contain the following characters: ~ * / \ : ' " |
Usage Scenario
If you only the subdirectory name is specified, a subdirectory is created in the current working directory. You can run the pwd command to query the current working directory. If the subdirectory name and directory path are specified, the subdirectory is created in the specified directory.
Precautions
The subdirectory name must be unique in a directory; otherwise, the message "Error: Directory already exists." is displayed.
A maximum of four directory levels are supported when you create a directory.
The file system has a restriction on the number of files in the root directory. Therefore, if more than 50 files exist in the root directory, creating new files in this directory may fail.