示例#1
0
        public static Ffile FromAbsolutePath(string absoluteFilePath)
        {
            var    folder = new AbsoluteFfolder(Path.GetDirectoryName(absoluteFilePath));
            string name   = Path.GetFileName(absoluteFilePath);

            return(new Ffile(folder, name));
        }
示例#2
0
        private static AbsoluteFfolder GetAbsolute(RelativeFfolder relativeFfolder)
        {
            var             relative = relativeFfolder;
            AbsoluteFfolder absolute = null;

            while (relative != null)
            {
                absolute = relative.Absolute;
                relative = relative.Parent;
            }
            return(absolute);
        }
示例#3
0
 public RelativeFfolder(AbsoluteFfolder baseFolder, string name)
 {
     Absolute = baseFolder;
     Name     = name;
 }