I am using the vb
version of thePhile.
In the FillFoldersAndFilesTables() method in the browsefile.aspx for file manager, it has the following statement at about line 578 to 584
Dim lastSlashIndex As Integer = folderPath.LastIndexOf("/")
location = folderPath.Substring(0, lastSlashIndex)
Response.Write("haha" & lastSlashIndex)
Response.Write("haha1" & location)
If location.Length = 0 Then
location = Request.ApplicationPath.ToString()
Why we need the last 3 lines? What is the purpose to check for location.length=0?