Support directory operations sanely.
------------------------------------

                 Key: WAGON-110
                 URL: http://jira.codehaus.org/browse/WAGON-110
             Project: wagon
          Issue Type: Improvement
          Components: wagon-provider-api
            Reporter: Luke Daley


The {{Wagon}} provider API is confused for directory operations. To simplify, I 
propose a new interface be created (e.g. {{DirectoryWagon}}) that wagons can 
implement...

{code}
bool isDirectory(String path) throws TransferFailedException, 
ResourceDoesNotExistException, AuthorizationException;
String[] getFileList(String path) throws TransferFailedException, 
ResourceDoesNotExistException, AuthorizationException;
void mkdir(String path) throws TransferFailedException, 
ResourceDoesNotExistException, AuthorizationException;
void mkdirs(String path) throw throws TransferFailedException, 
ResourceDoesNotExistException, AuthorizationException;
{code}

This would also require removing all directory related methods from the 
{{Wagon}} interface. The {{AbstractWagon}} implementation could _transparently_ 
use the primitives from the {{DirectoryWagon}} interface (if implemented) to 
handle directory operations. 

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

        

Reply via email to