commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp Brügger (JIRA) <>
Subject [jira] [Commented] (VFS-255) Allow file operations to return a result
Date Tue, 14 Apr 2015 13:14:13 GMT


Philipp Brügger commented on VFS-255:

This feature requires deeper studies of how this can be implemented and offered via the existing
interfaces. I would recommend putting this feature to the future release and schedule it when
the concept is more clear.

> Allow file operations to return a result
> ----------------------------------------
>                 Key: VFS-255
>                 URL:
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Frank van der Kleij
> Currently the file operations can not return any result after being executed. A simple
interface should allow marking the operations that return something without being too strict
about what they return.
> I'm working on a command line shell based on VFS that also allows executing operations
( For the moment I found nothing better than to check
for a method getResult() but it I would prefer to just check for the interface.
> The interface could be something like this:
> package org.apache.commons.vfs.operations;
> public interface FileOperationResult {
> 	public abstract Object getResult();
> }
> For me returning a String would be good enough,  but I think returning an Object the
most appropriate. In the vfs shell I just do a toString() on it. 

This message was sent by Atlassian JIRA

View raw message