Describe the bug
When trying to symlink a new file or directory, a reflection error is thrown about String not having a method. Needs to be added
To Reproduce
Steps to reproduce the behavior:
Try running shan lr <a> <b> or shan link
Expected behavior
The files are symlinked properly
Error message
Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: toString for class java.lang.String
at clojure.lang.Reflector.getInstanceField(Reflector.java:397)
at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:440)
at shan.utils.paths$path.invokeStatic(paths.clj:10)
at shan.utils.paths$path.doInvoke(paths.clj:9)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at shan.utils.symlinks$create_links$fn__895.invoke(symlinks.clj:12)
at clojure.core$mapv$fn__8468.invoke(core.clj:6914)
at clojure.core.protocols$iter_reduce.invokeStatic(protocols.clj:49)
at clojure.core.protocols$fn__8162.invokeStatic(protocols.clj:75)
at clojure.core.protocols$fn__8162.invoke(protocols.clj:75)
at clojure.core.protocols$fn__8110$G__8105__8123.invoke(protocols.clj:13)
at clojure.core$reduce.invokeStatic(core.clj:6830)
at clojure.core$mapv.invokeStatic(core.clj:6905)
at clojure.core$mapv.invoke(core.clj:6905)
at shan.utils.symlinks$create_links.invokeStatic(symlinks.clj:10)
at shan.utils.symlinks$create_links.invoke(symlinks.clj:9)
at shan.commands.link$cli_link.invokeStatic(link.clj:12)
at shan.commands.link$cli_link.invoke(link.clj:6)
at shan.parser$run_cmd.invokeStatic(parser.clj:134)
at shan.parser$run_cmd.invoke(parser.clj:106)
at shan.core$_main$fn__1101.invoke(core.clj:66)
at shan.core$_main.invokeStatic(core.clj:56)
at shan.core$_main.doInvoke(core.clj:52)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at shan.core.main(Unknown Source)
Platform (please complete the following information):
Describe the bug When trying to symlink a new file or directory, a reflection error is thrown about String not having a method. Needs to be added
To Reproduce Steps to reproduce the behavior:
shan lr <a> <b>
orshan link
Expected behavior The files are symlinked properly
Error message
Platform (please complete the following information):