Support UNC paths in PathResource #669
Also-by: Marco Signorini <m.signorini@iontrading.com> Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
5b50e41e7e
commit
fc36e45795
|
@ -33,6 +33,7 @@ import java.nio.file.Files;
|
|||
import java.nio.file.InvalidPathException;
|
||||
import java.nio.file.LinkOption;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.StandardOpenOption;
|
||||
import java.nio.file.attribute.FileTime;
|
||||
import java.util.ArrayList;
|
||||
|
@ -229,7 +230,7 @@ public class PathResource extends Resource
|
|||
Path path;
|
||||
try
|
||||
{
|
||||
path = new File(uri).toPath();
|
||||
path = Paths.get(uri);
|
||||
}
|
||||
catch (InvalidPathException e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue