File path = resolveDestinationPath( destinationDirectory );
if ( !path.exists() )
{
throw new ResourceDoesNotExistException( "Directory does not exist: " + destinationDirectory );
}
if ( !path.isDirectory() )
{
throw new ResourceDoesNotExistException( "Path is not a directory: " + destinationDirectory );
}
String files[] = path.list();
return Arrays.asList( files );