scala.build.internal.JniGetWinDirs Maven / Gradle / Ivy
package scala.build.internal;
import java.util.ArrayList;
import coursier.cache.shaded.dirs.GetWinDirs;
import coursier.jniutils.WindowsKnownFolders;
public class JniGetWinDirs implements GetWinDirs {
@Override
public String[] getWinDirs(String... guids) {
ArrayList list = new ArrayList<>();
for (int i = 0; i < guids.length; i++) {
list.add(WindowsKnownFolders.knownFolderPath("{" + guids[i] + "}"));
}
return list.toArray(new String[list.size()]);
}
}