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

IOUtility Class

Overview

Static Public Member Functions

static bool
CreateDirectory
( string directoryPath,
bool recursively )
Creates a directory recursively if desired and returns true if successful
static bool
DeleteDirectory
( string directoryPath,
bool forceIfFilled )
Deletes a directory and returns true if the directory no longer exists

Details

Static Member Functions

static bool Meta.WitAi.Utilities.IOUtility.CreateDirectory
( string directoryPath,
bool recursively )
Creates a directory recursively if desired and returns true if successful
Parameters
directoryPath
The directory to be created
recursively
Will traverse parent directories if needed
Returns
Returns true if the directory exists
static bool Meta.WitAi.Utilities.IOUtility.DeleteDirectory
( string directoryPath,
bool forceIfFilled )
Deletes a directory and returns true if the directory no longer exists
Parameters
directoryPath
The directory to be created
forceIfFilled
Whether to force a deletion if the directory contains contents
Returns
Returns true if the directory does not exist
Did you find this page helpful?
Thumbs up icon
Thumbs down icon