You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/07/05 17:39:04 UTC

[jira] [Updated] (GROOVY-6711) Make java.nio.file.Files a DGM class

     [ https://issues.apache.org/jira/browse/GROOVY-6711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pascal Schumacher updated GROOVY-6711:
--------------------------------------
    Reporter: Guillaume Laforge  (was: Guillaume Delcroix)

> Make java.nio.file.Files a DGM class
> ------------------------------------
>
>                 Key: GROOVY-6711
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6711
>             Project: Groovy
>          Issue Type: Improvement
>          Components: groovy-jdk
>            Reporter: Guillaume Laforge
>
> The java.nio.file.Files class contains only DGM-friendly static methods taking a "self" first parameter, just like Groovy's own DGM class methods.
> Instead of having to do
> {code}
> Files.delete(path)
> {code}
> we could support out of the box:
> {code}
> path.delete()
> {code}
> There are tons of useful methods such as: copy(), delete(), isHidden(), etc.
> We might have to tweak methods like newInputStream() added already in the NIO2 module for consistency and de-duplication.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)