leverage paths for default FileDirectory constructor

This commit is contained in:
Connor Tumbleson 2016-12-25 08:22:31 -05:00
parent 891d0d39e0
commit 3ba82b08e3

View File

@ -30,7 +30,7 @@ public class FileDirectory extends AbstractDirectory {
private File mDir; private File mDir;
public FileDirectory(String dir) throws DirectoryException { public FileDirectory(String dir) throws DirectoryException {
this(new File(dir)); this(Paths.get(dir).toFile());
} }
public FileDirectory(ExtFile dir, String folder) throws DirectoryException { public FileDirectory(ExtFile dir, String folder) throws DirectoryException {