if let session = self.session {
session.requestItems(atPath: path!) { (result) in
self.title = self.path?.routablePath
switch result {
case .success(let items):
self.items = items
case .failure(let error):
self.items = []
print("FilesTableViewController failed to request files: (error)")
}
}
when we connect the Mac then result will be success and when we connect the window then show the failure. @filmicbuildbot @johnnyclem
if let session = self.session {
session.requestItems(atPath: path!) { (result) in
self.title = self.path?.routablePath
switch result {
case .success(let items):
self.items = items
case .failure(let error):
self.items = []
print("FilesTableViewController failed to request files: (error)")
}
}
when we connect the Mac then result will be success and when we connect the window then show the failure. @filmicbuildbot @johnnyclem