Type Alias TransferredFiles

TransferredFiles: { getFiles: () => TransferredFile[] }

Represents a collection of transferred files from a file transfer event

os.pullEvent<Events["file_transfer"]>("file_transfer").then(([files]) => {
const transferredFiles = files.getFiles();
for (const file of transferredFiles) {
console.log(`Received file: ${file.getName()}`);
}
});