bos.toByteArray() );
}
break;
}
case 'C' : {
Copy copy = (Copy) item;
if ( copy.getPathType() == 'D' ) {
action = copyDirectory( copy.getFromPath(),
copy.getToPath(),
copy.getFromRevision() );
} else {
int lastSlash = copy.getFromPath().lastIndexOf( '/' );
String fromPath = copy.getFromPath().substring( 0,
lastSlash - 1 );
String fromFile = copy.getFromPath().substring( lastSlash + 1,
copy.getFromPath().length() - 1 );
lastSlash = copy.getToPath().lastIndexOf( '/' );
String toPath = copy.getToPath().substring( 0,
lastSlash - 1 );
String toFile = copy.getToPath().substring( lastSlash + 1,
copy.getToPath().length() - 1 );
action = copyFile( fromPath,
fromFile,
toPath,
toFile,
copy.getFromRevision() );
}
break;
}
case 'D' : {