File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ To remove a file wrapper from existing wrapper use `-removeFileWrapper`.
172172``` objective-c
173173LSFileWrapper* 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.
179179LSFileWrapper* wrapperToRemove = [ directoryWrapper fileWrapperWithPath: @"hello.txt"] ;
@@ -186,7 +186,7 @@ if (wrapperToRemove) {
186186```swift
187187let 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
190190directoryWrapper.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.
You can’t perform that action at this time.
0 commit comments