Closed kaikuehne closed 4 years ago
There is no kind
function, use type
. Did you get this from docs? If so where? I need to fix them.
Thanks for your reply.
I just realized that Xcode shows more than one warning (replaced kind
with type
here already):
Path.home.find().maxDepth(1).extension("swift").type(.file) { path in
...
}
Value of type 'Any' has no member 'extension'
Value of type 'Any' has no member 'type'
Value of type 'Path.Finder' has no member 'maxDepth'
I took the code from https://github.com/mxcl/Path.swift/tree/1.0.0-alpha.3#directory-listings.
Path.home.find().depth(max: 1).extension("swift").type(.file) { path in
//…
}
Documentation fixed, thanks.
Thanks!
Hello, first of all, thanks for providing this library. :-) Secondly, I'm completely new to Swift, so bear with me if I'm just holding this wrong.
I was playing around with the API and cannot get one of the examples from the README to work. This code...
... always gives me this error:
I tried to add
execute
to the call, to align it with the other examples, but that didn't help. I'm using SPM to install version1.0.0-alpha.3
. Any help is appreciated. Thanks!