[ 
http://issues.apache.org/jira/browse/MUSE-24?page=comments#action_12419949 ] 

Dan Jemiolo commented on MUSE-24:
---------------------------------

It seems like most of the code for DirectoryUtils is already in FileUtils, 
except that the implementation of DirectoryUtils uses channel I/O instead of 
stream I/O. You also have file filters for the copying, which is a great 
feature.

Could you augment what's already in FileUtils.copy( ) in the following ways?

1. If you feel it's worthwhile, change the copying mechanism to use nio - I'm 
not sure that it is, given that most of our file copying does not happen on a 
per-request basis (so there's no performance issues). Please advise.

2. Overload the FileUtils.copy method to allow users to filter files when 
copying directories. Change the current copy( ) to invoke the new method with 
an empty set of filters. Your method of providing the set of paths in a 
collection is good - it would also be nice if one could specify a FileFilter 
for this method.

Making this change allows all users to have access to this common utility and 
keeps file I/O utils in a single place.



> code generation for Muse 2.x
> ----------------------------
>
>          Key: MUSE-24
>          URL: http://issues.apache.org/jira/browse/MUSE-24
>      Project: Muse
>         Type: New Feature

>     Reporter: Andrew Eberbach
>  Attachments: muse-tools.zip, overview-tools.html
>
> Current progress on the new command-line tooling.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to