public static Ffile FromAbsolutePath(string absoluteFilePath) { var folder = new AbsoluteFfolder(Path.GetDirectoryName(absoluteFilePath)); string name = Path.GetFileName(absoluteFilePath); return(new Ffile(folder, name)); }
private static AbsoluteFfolder GetAbsolute(RelativeFfolder relativeFfolder) { var relative = relativeFfolder; AbsoluteFfolder absolute = null; while (relative != null) { absolute = relative.Absolute; relative = relative.Parent; } return(absolute); }
public RelativeFfolder(AbsoluteFfolder baseFolder, string name) { Absolute = baseFolder; Name = name; }