removeDirectory method

Future<int?> removeDirectory(
  1. String directoryPath, [
  2. String? pattern,
  3. bool? recursive
])

Implementation

Future<int?> removeDirectory(String directoryPath,
    [String? pattern, bool? recursive]) {
  if (pattern != null && recursive == null)
    throw new ArgumentError(
        "Argument 'pattern' should be defined with argument 'recursive'");

  return _channel.invokeMethod(
      "Backendless.Files.removeDirectory", <String, dynamic>{
    "directoryPath": directoryPath,
    "pattern": pattern,
    "recursive": recursive
  });
}