deleteFile method

  1. @override
Future<void> deleteFile(
  1. String path
)
override

Deletes the file or directory at the specified path.

Implementation

@override
Future<void> deleteFile(String path) {
  return _executeRequest(
    () async {
      final response = await client.deleteFile(path,
          isAppFolder:
              MultiCloudStorage.cloudAccess == CloudAccessType.appStorage);
      if (response.message?.contains('SocketException') ?? false) {
        throw NoConnectionException(response.message ?? response.toString());
      }
    },
    operation: 'deleteFile at $path',
  );
}