Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a "Master Page Gallery" where I can get some files using myList.RootFolder.Files but they do not exisit in myList.GetItems()

Using powershell I have found the file has all valid data but no list item. I am unable to delete or overwite this file. How can I create a SPListItem in the library for it?

share|improve this question
I want to override the file because there is no list item. Cannot override because its not checked out. Cannot be checked out because there is no list item. –  user13186 Apr 19 '13 at 16:35
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.