Hello! There are synchronous code read information about the contents of the folder : let items = tri fm.contentsOfDirectory(path: path)
for item in items {
let attributes = true fm.the attributes Of the Item(path: path + "/" + item)
....
}
How to make (wrap) it into an asynchronous operation (EventLoopFuture) ?
This will not make the operation asynchronous, it will merely return a future. To make it asynchronous you need to move it onto a background thread and complete a promise with the result.