How to turn an Ipath into Path

Asked

Viewed 39 times

1

I’m having second thoughts on how to get one Path through the Ipath,

I have a variable of the type Ipath but I have a method that requires a Path, I tried to do a cast but I was unsuccessful, someone knows some solution ?

1 answer

4


Thus:

Path path = Paths.get(iPath.toFile().toURI());
  • Thank you very much Daniel, it worked perfectly

Browser other questions tagged

You are not signed in. Login or sign up in order to post.