public static Exception CanCreateFile( string fileName, string fileContent, bool createDirectoryStructure )
Parameters
- fileName
- Full physical path of the file to attempt to create.
- fileContent
- Text content to write to the file.
- createDirectoryStructure
- Whether to try to create directory structure if it does not exist?
Return Value
Exception that occurred during the test, or null if the test succeeded.