Why Nostr? What is Njump?
2023-11-29 22:06:38
in reply to

StupditySpeksThrougMe🥤 🌛 🗄️ on Nostr: npub1lse4p…c5d80 Hm. First i thought "maybe wrong version?", but this here says ...

Hm.
First i thought "maybe wrong version?", but this here says it's in Java SE 8: https://docs.oracle.com/javase/8/docs/api/java/nio/file/Files.html

I'd guess you use at least Java 8.

Looks like you should create a Path and call resolve on that:
Path source = ...
Path newdir = ...
Files.copy(source, newdir.resolve(source.getFileName());

Would be interesting if that works, too lazy to try myself right now.
Author Public Key
npub1jgvnjt46z6hsypwd29yz07nj7jd839j2wzlzyah87fq7fm2fjn3qgtqsvh