public class MoreProjectFilesystems extends Object
ProjectFilesystem
.Modifier and Type | Method and Description |
---|---|
static Path |
createRelativeSymlink(Path pathToDesiredLinkUnderProjectRoot,
Path pathToExistingFileUnderProjectRoot,
ProjectFilesystem projectFilesystem)
Creates a symlink at
projectFilesystem.getRootPath().resolve(pathToDesiredLinkUnderProjectRoot) that points to
projectFilesystem.getRootPath().resolve(pathToExistingFileUnderProjectRoot) using a
relative symlink. |
static boolean |
fileContentsDiffer(InputStream contents,
Path path,
ProjectFilesystem projectFilesystem) |
public static Path createRelativeSymlink(Path pathToDesiredLinkUnderProjectRoot, Path pathToExistingFileUnderProjectRoot, ProjectFilesystem projectFilesystem) throws IOException
projectFilesystem.getRootPath().resolve(pathToDesiredLinkUnderProjectRoot)
that points to
projectFilesystem.getRootPath().resolve(pathToExistingFileUnderProjectRoot)
using a
relative symlink.pathToDesiredLinkUnderProjectRoot
- must reference a file, not a directory.pathToExistingFileUnderProjectRoot
- must reference a file, not a directory.projectFilesystem
- the projectFileSystem.IOException
public static boolean fileContentsDiffer(InputStream contents, Path path, ProjectFilesystem projectFilesystem) throws IOException
IOException