Skip to main content

Timeline for File gone after using SPFile.MoveTo

Current License: CC BY-SA 3.0

3 events
when toggle format what by license comment
Nov 6, 2014 at 1:29 vote accept user13186
Apr 12, 2014 at 18:37 comment added user13186 Still not working, I have also done.. $item = $web.Lists["MyDocuments"].GetItems()[4] $n = $item.Name $item.File.MoveTo("MyDocuments/SubFolderName/$n",$true) This point the files should have moved to the folder and be visible it is not. so I tried $item.File.Url which returns "MyDocuments/SubFolderName/myFile2.docx", $item.File.Item.url also returns "MyDocuments/SubFolderName/myFile2.docx", BUT $item.url still returns "MyDocuments/myFile2.docx". I have tried to call .update() on pretty much every object but still no change
Apr 11, 2014 at 22:23 history answered Phil Greer CC BY-SA 3.0