Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
None
-
None
-
None
Description
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...
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;
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.