public ResourceGroupManager(IO.FileSystem fileSystem) { if (fileSystem == null) throw new ArgumentNullException("fileSystem"); FileSystem = fileSystem; }
String BuildPath(String basepath, String filepath) { IO.FileSystem filesystem = GetSubSystem <IO.FileSystem>(); String path1 = filesystem.CombinePaths(basepath, filepath); if (filesystem.DoesFileExist(path1) == true) { return(path1); } String path2 = filesystem.CombinePaths("data", filepath); if (filesystem.DoesFileExist(path1) == true) { return(path2); } String path3 = filesystem.CombinePaths("", filepath); if (filesystem.DoesFileExist(path1) == true) { return(path3); } return(null); }