Skip to content

Commit df8cd64

Browse files
authored
📖 Updated Usage section
Removed all references to the unsafe fileWrappers property.
1 parent 1c8f5a6 commit df8cd64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,18 @@ if let wrapperToRemove = directoryWrapper.withPath("hello.txt") {
197197
### Getting child wrappers
198198
> **_Notice:_** Directory wrappers only.
199199
200-
To get wrappers from a directory wrapper use `@property fileWrappers` or call `-fileWrapperWithPath`, the latter will also traverse all children based on path.
200+
To get wrappers from a directory wrapper call `-fileWrapperWithPath`, this will also traverse all children based on supplied path.
201201
```objective-c
202202
LSFileWrapper* directoryWrapper;
203203

204204
LSFileWrapper* wrapper = [directoryWrapper fileWrapperWithPath: @"hello.txt"];
205-
LSFileWrapper* wrapper = [directoryWrapper [fileWrappers objectForKey: @"hello.txt"]];
206205
```
207206
208207
*Swift:*
209208
```swift
210209
let directoryWrapper: LSFileWrapper
211210
212211
let wrapper = directoryWrapper.withPath("hello.txt")
213-
let wrapper = directoryWrapper.fileWrappers?["hello.txt"]
214212
```
215213
## ⚖️ License
216214
LSFileWrapper is distributed under the [MIT license](LICENSE).

0 commit comments

Comments
 (0)