开发者

Identify "Forms" folder in a Sharepoint document library

开发者 https://www.devze.com 2022-12-11 08:57 出处:网络
I\'m working on an application that shows a listing of files and folders within a Sharepoint document library. The file/folder list is created based on the SPList\'s RootFolder.Su开发者_Go百科bFolders

I'm working on an application that shows a listing of files and folders within a Sharepoint document library. The file/folder list is created based on the SPList's RootFolder.Su开发者_Go百科bFolders and .Files collections.

Is there a way to filter out the "Forms" folder from the results, without hard-coding a check for a folder called forms?


You could check if the folder does not have an associated list item, i.e. if SPFolder.Item is null. Otherwise, hard-coding the name "Forms" should be ok as this does not change across different language versions of SharePoint.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号