reconstruct folder and allow partition in java-client