Copy both files and folder

Oct 11 at 2:09 PM
Edited Oct 11 at 2:15 PM
Hi,

I have a file share with containing both folders and files. I am copying to a library on SharePoint Online.

I want to convert the folders into document sets.

Is there a way that folders can be converted to document set in the destination path?
Oct 12 at 8:29 AM
Yes.

To do this first use the FolderToData script (available from downloads) to list the file system out to a CSV.

Import the CSV to Excel.

Manipulate the excel to provide an import source (there are examples that install and guidance in the documentation).

Create a folder import source that assigns a document set content type and creates all the folders as document sets.

Create a document import source that imports into the folder structure (which will be documents set).

Run these in order and you will have what you want.

You can even clean up the data and assign meta data from the Excel