since a Path
class does not have public constructor ,so path object are created using get
factory method in Paths
object.
e.g
Path p2 = Paths.get("/home/admin","Migrations","/blog/tables/6-rating.xml");
//or
Path p2 = Paths.get(new URI("file://home/debianaut/Migrations/blog.sakhunzai/tables/6-rating.xml"));
how we can do this in clojure way ?
(Paths/get "/home/admin" "Migrations" "/blog/tables/6-rating.xml") CompilerException java.lang.IllegalArgumentException: No matching method: get, compiling:(NO_SOURCE_PATH:5:2)
– Elkin(Paths/get "/home/debianaut/Migrations/blog.sakhunzai/tables/6-rating.xml") ClassCastException java.lang.String cannot be cast to java.net.URI user/eval5598 (NO_SOURCE_FILE:11)
– Elkin