views:

64

answers:

2

I need to move a folder of files (+-100 or so) from within a .wsp file

Steps
1) Package up files into the wsp
2) When Feature is activated copy files to the filesystem (12\LAYOUTS\MyPackage)
3) When Feature removed delete the MyPackage folder
4) .......
5) Profit

The files do not need to be versioned etc by SharePoint.

+1  A: 

You'll need to use the module element within the elements.XML file referenced by your feature definition; details here:

http://msdn.microsoft.com/en-us/library/ms441170.aspx

Gurdas Nijor
+1  A: 

The module element is correct. To remove the files when you are done, use the code from my post which will delete any file that was created with the module element.

Corey Roth