createFolderIfNotExist method
Create a new Directory with the Name of pDirectory
in the current directory if it does not exist.
Returns true
if the directory exists or was created successfully
Returns false
if the directory not found and could not be created
Implementation
Future<bool> createFolderIfNotExist(String pDirectory) async {
if (!await checkFolderExistence(pDirectory)) {
return this.makeDirectory(pDirectory);
}
return true;
}