I previously mentioned and linked to sample code for Importing/Exporting SharePoint Document Libraries to/from the File System
I have since released this on CodePlex in the form of a built tool with documentation and source, and it is now published at
http://www.codeplex.com/SPIEFolder
I had a SPExportWebFiles tool in the old Utility Suite that did the exporting, and an Import feature in SPSiteBuilder. I’ve been waiting to find the time or opportunity to provide both a sample/tool that provided both import and export. Just thought I would share in case anyone else needs a quick and dirty way to perform this.
SPIEFolder allows you to either Import a file system folder (And all files and subfolders) into a SharePoint Document Library, and also export a SharePoint Document Library to the file system for WSS2.0/SPS2003 or WSS 3.0/MOSS 2007.
This tool completely replicates the a document libraries folder hierarchy to the file system when exporting, and replicates the folder hierarchy from the file system to the document library when importing.
Enjoy! and HTH!
- Keith Richie

Is it usable in case of Document Library with versioning? I am in need to copy document library from one MOSS to another, some of those have versioning enabled.
Comment by alexguzun — October 25, 2007 @ 5:47 pm
Just tested
No it does not supporting Version History.
Is it posible to add that support? Or any other tool?
Thank you
Comment by Guzya — October 25, 2007 @ 6:16 pm
I am getting a sharepoint permissions error when attempting to import the folders/files from a previous server. I had no problem with the export from the old system. Your tool works well. If you have any ideas on the permission thing, it would be greatly appreciated.
Comment by jim smith — March 26, 2008 @ 5:01 am
Ensure you’re running it with an account that has the correct rights. Are you able to add/upload from the sites UI?
Comment by Keith Richie — March 26, 2008 @ 6:52 pm
I am logged onto the server as administrator and can upload/view/delete documents from the target document library on the server and a client pc from the UI.
Comment by jim smith — March 26, 2008 @ 10:50 pm
Ok, what exactly is the “Permissions” error that you are getting then?
Comment by Keith Richie — March 26, 2008 @ 10:58 pm
Fantástica utilidad.
Gracias al código fuente, he podido desarrollar la herramienta que necesitaba, ampliando la funcionalidad de importación de metadatos.
Gracias sinceras por el trabajo.
Me he tomado la libertad de mentar tu blog y trabajo en mis entradas de bitácora.
Saludos
Comment by eordoper — June 10, 2008 @ 10:42 pm
Does this preserve the Date Modified and/or Date Created? How about other metadata?
So far, the only thing I’ve found that does this is DocKIT for SharePoint, but it’s not cheap, and is sold on a per server basis.
If SPIEFolder doesn’t preserve the original dates, do you know of any free or cheap program that will?
I’m aware that the metadata can be changed through code, but that’s too cumbersome. I just want to import files without losing their Date Modified. Thanks again, Ralph.
Comment by Ralph Smorra — January 20, 2009 @ 4:22 am