New answers tagged


If you have an SPListItem whose content type is Folder, you can get an SPFolder object using the Folder property: item.Folder With that object, you can get the Files property to retrieve a SPFileCollection object with all of the files inside the folder: item.Folder.Files If your SPListItem is a file, you can get its SPFile object with the File property:...

Top 50 recent answers are included