SharePoint FileSystem

Sep 6, 2013 at 12:23 PM
Edited Sep 6, 2013 at 12:35 PM
Hi all,

I would like to use this connector with a SharePoint Remote Folder (it seems like another current remote folder: \\host\folder). I have been trying with a local filesystem and I have no problems but I am not able to make it work against this kind of file system.

Is it possible?

Thanks in advanced.
Coordinator
Sep 9, 2013 at 8:40 AM
Edited Sep 9, 2013 at 9:37 AM
Hi jbernal,

At this moment connector depeneds on classes FileInfo and DirectoryInfo. So, if you can get DirectoryInfo from your ShapePoint directory than you can use it.
I found helpful link, it maybe helps social.msdn.microsoft.com
string dirPath = Microsoft.SharePoint.Utilities.SPUtility.GetGenericSetupPath("LAYOUTS\YourFolder");
DirectoryInfo dir = new DirectoryInfo(dirPath);

FileSystemDriver driver = new FileSystemDriver();
driver.AddRoot(new Root(dir));
Sep 13, 2013 at 12:33 PM
Edited Sep 13, 2013 at 3:06 PM
Hi Evgeny,

Thanks a lot for your reply and sorry about the delay.

ElFinder works perfectly with a sharepoint remote folder because as you wrote, DirectoryInfo and FileInfo are available and they work fine.

Unfortunately, now I am having problems with the folder access because everything work ok with the Visual Studio Development Server but I am not able to use the correct credentials in the IIS due to it uses SYSTEM account. But this is a different issue...

Thanks.