Pairs a File with the absolute File obtained by calling getAbsoluteFile
.
Pairs a File with the absolute File obtained by calling getAbsoluteFile
.
Note that this usually means that relative files are resolved against the current working directory.
Selects all descendents of base
directory and maps them to a path relative to base
.
Selects all descendents of base
directory and maps them to a path relative to base
.
base
itself is not included.
A path mapper that pairs a File with the path returned by calling getPath
on it.
A path mapper that pairs a File with the path returned by calling getPath
on it.
A mapper that throws an exception for any input.
A mapper that throws an exception for any input. This is useful as the last mapper in a pipeline to ensure every input gets mapped.
Constructs a File mapper that pairs a file with a file with the same name in newDirectory
.
Constructs a File mapper that pairs a file with a file with the same name in newDirectory
.
For example, if newDirectory
is /a/b
, then /r/s/t/d.txt
will be paired with /a/b/d.txt
A path mapper that pairs a File with its name.
A path mapper that pairs a File with its name. For example, /x/y/z.txt
gets paired with z.txt
.
A path mapper that pairs a File with a path constructed from newBase
and the file's name.
A path mapper that pairs a File with a path constructed from newBase
and the file's name.
For example, if newBase = /new/a/
, then /old/x/z.txt
gets paired with /new/a/z.txt
.
Produces a File mapper that pairs a descendant of oldBase
with a file in newBase
that preserving the relative path of the original file against oldBase
.
Produces a File mapper that pairs a descendant of oldBase
with a file in newBase
that preserving the relative path of the original file against oldBase
.
For example, if oldBase
is /old/x/
and newBase
is /new/a/
, /old/x/y/z.txt
gets paired with /new/a/y/z.txt
.
A path mapper that pairs a descendent of oldBase
with newBase
prepended to the path relative to oldBase
.
A path mapper that pairs a descendent of oldBase
with newBase
prepended to the path relative to oldBase
.
For example, if oldBase = /old/x/
and newBase = new/a/
, then /old/x/y/z.txt
gets paired with new/a/y/z.txt
.
A path mapper that pairs a File with its path relative to base
.
A path mapper that pairs a File with its path relative to base
.
If the File is not a descendant of base
, it is not handled (None is returned by the mapper).
Returns a File mapper that resolves a relative File against newDirectory
and pairs the original File with the resolved File.
Returns a File mapper that resolves a relative File against newDirectory
and pairs the original File with the resolved File.
The mapper ignores absolute files.
Selects descendents of base
directory matching filter
and maps them to a path relative to base
.
Selects descendents of base
directory matching filter
and maps them to a path relative to base
.
base
itself is not included.
The separator character of the platform.
A mapper that is defined on all inputs by the function f
.
A mapper that is defined on all inputs by the function f
.
A mapper that ignores all inputs.
A mapper that ignores all inputs.