package org.metaborg.util.file;

import java.io.File;

import org.apache.commons.vfs2.FileObject;

public class FileUtils {
    public static File toFile(FileObject fileObject) {
        return new File(fileObject.getName().getPath());
    }
}

@@ -42,24 +42,53 @@
 ava.io.File;
+%0Aimport java.util.Collection;
 %0A%0Aimport org
@@ -121,16 +121,57 @@
 bject;%0A%0A
+import com.google.common.collect.Lists;%0A%0A
 public c
@@ -266,16 +266,396 @@
 ew File(
+toPath(fileObject));%0A    %7D%0A    %0A    public static Iterable%3CFile%3E toFiles(Iterable%3CFileObject%3E fileObjects) %7B%0A        final Collection%3CFile%3E files = Lists.newLinkedList();%0A        for(FileObject fileObject : fileObjects) %7B%0A            files.add(toFile(fileObject));%0A        %7D%0A        return files;%0A    %7D%0A    %0A    public static String toPath(FileObject fileObject) %7B%0A        return 
 fileObje
@@ -676,17 +676,16 @@
 etPath()
-)
 ;%0A    %7D%0A

Add extra utilities