This is needed because otherwise the UI will add the nested folders in the "current" directory, which is not correct.