Пример #1
0
 private static string[] GetDataEntries(string relativePath)
 {
     if (FileManager.DataTree != null)
     {
         FSNodeDir dir = FileManager.DataTree.RootNode.GetSubDirByPath(relativePath);
         if (dir != null)
         {
             string[] files = dir.GetRelativePaths(removeFromFileEnding: ".");
             return(files);
         }
     }
     return(null);
 }
Пример #2
0
 private static string[] GetAttribEntries(string relativePath)
 {
     if (FileManager.AttribTree != null)
     {
         FSNodeDir dir = FileManager.AttribTree.RootNode.GetSubDirByPath("simulation\\attrib\\" + relativePath);
         if (dir != null)
         {
             string[] files = dir.GetRelativePaths("simulation\\attrib\\", ".");
             return(files);
         }
     }
     return(null);
 }