API reference
API reference
Select your platform
No SDKs available
No versions available

IOUtility Class

Static Methods

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