Remove some trivally unneeded usages of FileSystem#getRootDirectory.
Windows doesn't have a root directory, so this abstraction doesn't make sense and should be removed.
@@ -170,8 +170,7 @@ public class FileFunction implements SkyFunction {
throws FileFunctionException, InterruptedException {
RootedPath symlinkTargetRootedPath;
if (symlinkTarget.isAbsolute()) {
- Path path = rootedPath.asPath().getFileSystem().getRootDirectory().getRelative(
- symlinkTarget);
+ Path path = rootedPath.asPath().getFileSystem().getPath(symlinkTarget);
symlinkTargetRootedPath =
RootedPath.toRootedPathMaybeUnderRoot(path, pkgLocator.get().getPathEntries());
} else {
