Copy only folders
I would like to have an option to only copy folders , There is a "flatten folder hierarchy" option but not one for copying only the folders instead
Kiran Kumar commented
I have a requirement to copy only folder structure from a file share to SP Library. Used Import from File Share in Copy and then in Options => Filter Options => File Extensions => Limit To => enter FOLDER and click out of the textbox for it resolve, then enter dir again, save the options and click on Start Copy. This will copy only folder structure from a file share
Dan O'Brien commented
Hi Everyone, I had the same problem here and found 2 ways of making a copy of a library with only the folder structure in the destination.
The Brute force way:
1. Copy everything, including documents to the new library. After the copy, in the destination list, create a view that shows all content without folders (this filtering option is built into SharePoint views). Select all documents and delete them. You are left with your folder structure with no documents.
The Sharegate filter way:
2. Using Copy Structure -> Make a copy of the source library. Once Complete, use Copy Content, select the source and destination libraries like you normally would to copy content between them. Select all the items in the Built-in view. Then go to Options -> Filter Options and change the "File extension" to "Limit to" and leave that blank (leaving that input box blank will not copy anything with a file extension). Save the options, set whatever other options and mappings you need and copy!
Hope this is helpful.
If this sill is interesting it could be accomplished by creating a view that only shows folders (filter on content type) and select this in the source view (copy content)
I'm currently copying 2019 library to a 2020 library with hundreds of folders, can this be done?
Brian B commented
Please make this happen. I'm currently copying 2019 library to a 2020 library with hundreds of folders. Only the folder structure is required. Lil help here?