'key' The key to be used for the returned array of files. Possible values are 'filepath', for the path starting with $dir, 'filename', for the basename of the file, and 'name' for the name of the file without an extension. Defaults to 'filepath'.
wrong: It's uri now.
Comments
Comment #1
jhodgdonThis was introduced in #517814: File API Stream Wrapper Conversion -- a patch was committed that changed the function, but didn't fix the doc. That issue is still open, and I've added your comment to it. Thanks for reporting!