CreateDirectory
(
directoryPath
, recursively
)
|
Creates a directory recursively if desired and returns true if successful
Signature
static bool Meta.WitAi.Utilities.IOUtility.CreateDirectory(string directoryPath, bool recursively=true) Parameters directoryPath: stringÂ
The directory to be created
recursively: boolÂ
Will traverse parent directories if needed
Returns boolÂ
Returns true if the directory exists
|
DeleteDirectory
(
directoryPath
, forceIfFilled
)
|
Deletes a directory and returns true if the directory no longer exists
Signature
static bool Meta.WitAi.Utilities.IOUtility.DeleteDirectory(string directoryPath, bool forceIfFilled=true) Parameters directoryPath: stringÂ
The directory to be created
forceIfFilled: boolÂ
Whether to force a deletion if the directory contains contents
Returns boolÂ
Returns true if the directory does not exist
|