Skip to content

Commit

Permalink
Merge pull request #158 from saalfeldlab/homedir-realpath
Browse files Browse the repository at this point in the history
Get real path of home directory
  • Loading branch information
hanslovsky authored Nov 9, 2018
2 parents 0851e7c + 712fef8 commit b0ca196
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import java.io.File;
import java.lang.invoke.MethodHandles;
import java.nio.file.Paths;
import java.util.Optional;
import java.util.concurrent.ExecutorService;
import java.util.function.Consumer;
Expand All @@ -28,7 +29,8 @@ public class FileSystem {

private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

private final StringProperty container = new SimpleStringProperty(USER_HOME);
private final StringProperty container = new SimpleStringProperty(MakeUnchecked.supplier(Paths.get(USER_HOME)::toRealPath).get().toString());

private final ObjectProperty<Supplier<N5Writer>> writerSupplier = new SimpleObjectProperty<>(MakeUnchecked.supplier(() -> null));

{
Expand Down

0 comments on commit b0ca196

Please sign in to comment.