listing method
Implementation
Future<FileInfo?> listing(String path,
{String pattern = '*',
bool recursive = false,
int? pageSize,
int? offset}) async {
if (path.isEmpty) throw ArgumentError.value(ExceptionMessage.emptyPath);
var methodName = 'files/$path?pattern=$pattern&recursive=$recursive';
if (pageSize != null) methodName += '&pagesize=$pageSize';
if (offset != null) methodName += '&offset=$offset';
return await Invoker.get(methodName);
}