bool CreateDirectory(bool)
Creates a directory at the given path
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
dirPath |
bool The path to the new directory. |
Return
True if the directory is created; false if the directory already exists.
Remarks
The target directory will be created. If the target directory already exists, then the initial directory will not be moved. Creating a file or directory in the UserData Directory will ensure that the file exists in all users with access to the C:. This is useful for testing settings as an admin user and running a kiosk as a separate, standard user. The variables needed to access KioWare Client's data directories are used in the following example. The kiosk user must have sufficient permissions to perform any file IO operation that performs a read or write operation on the current disk.
Examples
var userDataDir = KioApp.DoUrlSubstitution('$$KIO_USERDATA$$');
if(KioFileIO.CreateDirectory(userDataDir + 'newDir'))
var directoryInfo = KioFileIO.GetDirectoryDetails(userDataDir + 'newDir');
else console.log('Failed to create new directory ' + userDataDir + 'newDir');
Requirements
KioWare for Windows version 8.2 or greater.