added support to preserve file paths when enrolling to a folder