Skip to content

Commit 22959da

Browse files
authored
📖 Updated Readme
Changed removeFileWrapperWithFilename to removeFileWrapperWithPath
1 parent c8d7b3e commit 22959da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ To remove a file wrapper from existing wrapper use `-removeFileWrapper`.
172172
```objective-c
173173
LSFileWrapper* directoryWrapper;
174174

175-
// Using a filename, only 'first' children can be removed
176-
[directoryWrapper removeFileWrapperWithFilename: @"hello.txt"];
175+
// Using a path, can also contain "/" for subfolder search, all children can be removed
176+
[directoryWrapper removeFileWrapperWithPath: @"hello.txt"];
177177

178178
// Using an instance of a wrapper. Path can also contain "/" for subfolder search, however only 'first' children can be removed.
179179
LSFileWrapper* wrapperToRemove = [directoryWrapper fileWrapperWithPath: @"hello.txt"];
@@ -186,7 +186,7 @@ if (wrapperToRemove) {
186186
```swift
187187
let directoryWrapper: LSFileWrapper
188188
189-
// Using a filename, only 'first' children can be removed
189+
// Using a path, can also contain "/" for subfolder search, all children can be removed
190190
directoryWrapper.removeFileWrapper(with: "hello.txt")
191191
192192
// Using an instance of a wrapper. Path can also contain "/" for subfolder search, however only 'first' children can be removed.

0 commit comments

Comments
 (0)