Hi, I'm trying to search files in directory with this method:
var options = SynologyClient.SearchOptions();
options.pattern = "*.jpg";
client.search(atFolderPath: folderPath, options: options) { result in
switch result {
case .success(let task):
for file in task.files {
print(file.path)
}
case .failure(let error):
print(error.description)
}
}
Hi, I'm trying to search files in directory with this method:
But I'm getting this error:
Can someone help me please?
Thanks.