class FolderPath {

    public FolderPath getParent() {
        if (!isRoot()) {
            return new FolderPath(Arrays.copyOf(path, path.length - 1));
        }
        return this;
    }

    public  FolderPath(String... path);
    public  FolderPath(FolderPath parent, String... path);

}