7

I'm exploring the use of Document Sets as a more managed approach to file handling (in the recordkeeping sense) in SharePoint.

The chief problem I have is that Document Sets are derived from Folders, and indeed it's possible to view Document Sets as a folder through Explorer View. But if I create a new Folder via WebDAV, it shows as a normal folder and not a Document Set. If I edit that folder's properties, I'm given the option to change the content type of the folder into a Document Set, but unfortunately this doesn't modify the behavior of the folder – to all intents and purposes it is still just a Folder despite having the other content type.

How can I prevent the use of Folders entirely in a Document Library? Alternatively, is there any way for a Document Set to be the default in WebDAV?

2
  • 1
    What happens if you try the "List Settings > Advanced Settings" and set "Make "New Folder" command available?" to false?
    – Andy Burns
    May 26, 2011 at 8:40
  • 2
    That prevents creating folders in the SharePoint interface, but not in WebDAV. (Aside: even if you use PowerShell to remove the Folder content type from that Doc Library, the "New Folder" button still works so Folders are clearly somehow "special" to SharePoint.)
    – GuruJ
    May 27, 2011 at 10:15

2 Answers 2

2

Great question. You may want to consider creating an event receiver that is triggered whenever an item is created. If the content-type is folder then delete it.

3
  • Thanks for the down vote, care to provide feedback about what is incorrect? May 26, 2011 at 8:06
  • Wasn't me who downvoted ... the solution sounds good to me but I'm not very familiar with event receivers. Any good tips on getting started? Also, would it be feasible to delete and automatically recreate as a Document Set?
    – GuruJ
    May 27, 2011 at 10:20
  • Sorry to link to a generic Google search, but a search for 'develop sharepoint 2010 event receiver' returns many valid entries. You can do whatever you like from an event receiver. google.co.uk/… May 27, 2011 at 17:32
1

I wrote a SharePoint designer workflow to handle this :

If Current Item:Content Type equals Folder
Delete item in Current Item

It deletes the folder as soon as it is created in Explorer View.

Just make sure you set the workflow to run on Item Creation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.