public string FullPath(string suffix = "") { if (Parent == null) { return(suffix); } return(Parent.FullPath("/" + name + suffix)); }
/// <summary> /// Get the full path of this file within the image. /// </summary> /// <param name="suffix">Optional suffix to append to the result</param> /// <returns></returns> public string FullPath(string suffix = "") { // Parent == null implies this is the root directory, which doesn't really have a name. if (Parent == null) { return(suffix); } return(Parent.FullPath("/" + name + suffix)); }