[ https://issues.apache.org/jira/browse/WAGON-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov updated WAGON-110: --------------------------------- Fix Version/s: (was: 1.1) > Support directory operations sanely. > ------------------------------------ > > Key: WAGON-110 > URL: https://issues.apache.org/jira/browse/WAGON-110 > Project: Maven 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 was sent by Atlassian JIRA (v6.3.4#6332)