toList
lib.fileset.toList
Docs pulled from | This Revision | 10 minutes ago
The list of file paths contained in the given file set.
This function is strict in the entire file set.
This is in contrast with combinators lib.fileset.union
,
lib.fileset.intersection
and lib.fileset.difference
.
Thus it is recommended to call toList
on file sets created using the combinators,
instead of doing list processing on the result of toList
.
The resulting list of files can be turned back into a file set using lib.fileset.unions
.
Inputs
fileset
-
The file set whose file paths to return. This argument can also be a path, which gets implicitly coerced to a file set.
Type
toList :: FileSet -> [ Path ]
Examples
lib.fileset.toList
usage example
toList ./.
[ ./README.md ./Makefile ./src/main.c ./src/main.h ]
toList (difference ./. ./src)
[ ./README.md ./Makefile ]
Noogle detected
Implementation
The following is the current implementation of this function.
toList = fileset: _toList (_coerce "lib.fileset.toList: Argument" fileset);