/// <summary> /// Removes all empty directories recursively from recursive part /// </summary> /// <param name="file">Recursive part</param> public static void RemoveEmptyDirectories(this RecursivePath file) { var prefix = file.Prefix; if (string.IsNullOrWhiteSpace(prefix)) { return; } prefix = prefix.TrimEnd('\\'); var currentDirectory = Path.GetDirectoryName(file.Original)?.TrimEnd('\\'); do { if (!currentDirectory.RemoveDirectoryIfEmpty()) { break; } var slashIndex = currentDirectory?.LastIndexOf("\\", StringComparison.InvariantCultureIgnoreCase); if (slashIndex == null || slashIndex == -1) { break; } currentDirectory = currentDirectory.Substring(0, slashIndex.Value); } while (!string.IsNullOrWhiteSpace(prefix) && currentDirectory.Length > prefix.Length); }
public virtual KinodynamicSteering GetOutput(RecursivePath path, NodeGoal nodeGoal) { return(new RecursiveSteering()); }