file sorting use case. hard coded paths. little bit of good stuff needs splitting...
[ede] / explorer / src / Explorer.ec
index 134b675..58c86a2 100644 (file)
@@ -102,9 +102,39 @@ class Explorer : GuiApplication
             goPath = openArgsStartAt == -1 ? "" : argv[c];
             if(goPath)
             {
-               ExplorerWindow explorerWnd { };
-               explorerWnd.Create();
-               explorerWnd.location = goPath;//explorerWnd.GoTo(goPath, false, false);
+               if(false)//(c == 1)
+               {
+                  FileStats stats;
+                  //Map<String, bool> linksPaths { };
+                  //Map<uint, Map<uint, bool>> devsInodesDone { };
+                  //FileSystemCache cache;
+               //   dw = { visible = false };
+                  ///*cache = */FileSystemCache::Cache("/", true, dw);
+
+               //   FileSystemCache::Cache("/s1", true, false, true, dw);
+               //   FileSystemCache::Cache("/s2/0z", true, false, true, dw);
+                  //dw.cache.Special("/s2/0z/0sort", dw);
+                  //dw.cache.Special("/s2/library", dw);
+                  //dw.cache.Special("/s2/mirror", dw);
+               //   dw.cache.SpecialPrint();
+                  //devsInodesDone.Free();
+                  //delete devsInodesDone;
+
+                  /*{
+                     ExplorerWindow explorerWnd { testCache = dw.cache };
+                     explorerWnd.Create();
+                     explorerWnd.location = goPath;//explorerWnd.GoTo(goPath, false, false);
+                  }*/
+               //   PrintLn("# of objects: ", dw.cache.objects.count);
+               //   PrintLn("# of non single file sizes: ", dw.cache.nonSingleSizes.count);
+               //   delete dw;
+               }
+               else
+               {
+                  ExplorerWindow explorerWnd { };
+                  explorerWnd.Create();
+                  explorerWnd.location = goPath;//explorerWnd.GoTo(goPath, false, false);
+               }
             }
          }
       }