Hi,
In Sharepoint, I’ve some folders in that folders it has some files, how to get the earliest file in sharepoint
String.Join(“”, Directory.GetFiles(FolderPath,“*.xlsx”,SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Take(1) )
I’ve used thiscondition to get the earliest file, but I’m facing this error message:
“The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.”
without using long path file, how to overcome this error and need to get the earliest file.
Could anyone help me on this
Thanks in advance