How can we Read files using C# from Sharepoint Assets Directory.
like
string[] filePaths = Directory.GetFiles(@"D:\vikrant\Sneham\samplepics", "*.*",
SearchOption.AllDirectories);
Here Instead of "D:\vikrant\Sneham\samplepics if I write location of asset library http://machinename:7/SiteAssets/SnehamBackgrounds/ then it is throwing error(URI related).
Requirement is to one by one read file names from asset libaray.
1 Answer