query
On this page

maybeMissing

lib.fileset.maybeMissing



Create a file set from a path that may or may not exist:

  • If the path does exist, the path is coerced to a file set.
  • If the path does not exist, a file set containing no files is returned.

Example

# All files in the current directory, but excluding main.o if it exists
difference ./. (maybeMissing ./main.o)

Type

maybeMissing :: Path -> FileSet

Arguments

  • [path]