Skip to content

Commit 5002032

Browse files
Update README.md
1 parent 68602ee commit 5002032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ let client = SMBClient(host: "198.51.100.50")
1616
try await client.login(username: "alice", password: "secret")
1717
try await client.connectShare("Public")
1818

19-
let files = try await client.listDirectory("")
20-
print(files.map { $0.fileName })
19+
let files = try await client.listDirectory(path: "")
20+
print(files.map { $0.name })
2121

2222
try await client.disconnectShare()
2323
try await client.logoff()

0 commit comments

Comments
 (0)