Ejemplo n.º 1
0
 private Task HandleDirList(HttpConnection pp, string path, string infoText = null)
 {
     if (list_mode == ListMode.simple ||
         (list_mode == ListMode.auto && pp.GetReqHeader("User-Agent").StartsWith("curl/")))
     {
         return(SimpleList(pp, path, infoText));
     }
     else
     {
         return(RichList(pp, path, infoText));
     }
 }