[
https://issues.apache.org/jira/browse/SOLR-9902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15785039#comment-15785039
]
Mark Miller commented on SOLR-9902:
-----------------------------------
Probably because I cut and pasted it from the Path javadoc. Not the only code
that offers more than one way to do the same thing.
{noformat}
Accessing Files
Paths may be used with the Files class to operate on files, directories, and
other types of files. For example, suppose we want a BufferedReader to read
text from a file "access.log". The file is located in a directory "logs"
relative to the current working directory and is UTF-8 encoded.
Path path = FileSystems.getDefault().getPath("logs", "access.log");
BufferReader reader = Files.newBufferedReader(path,
StandardCharsets.UTF_8);
{noformat}
> StandardDirectoryFactory should use Files API for it's move implementation.
> ---------------------------------------------------------------------------
>
> Key: SOLR-9902
> URL: https://issues.apache.org/jira/browse/SOLR-9902
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Mark Miller
> Assignee: Mark Miller
> Fix For: master (7.0), 6.4
>
> Attachments: SOLR-9902.patch
>
>
> It's done in a platform independent way as opposed to the old File API.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]