Ejemplo n.º 1
0
        public override Folder Go(MyPath path)
        {
            var folder = new WinFolder(path);

            if (!folder.Exists())
            {
                throw new DirectoryNotFoundException();
            }

            Go(folder);
            return(folder);
        }
Ejemplo n.º 2
0
        public override void Create <TFile>(string filename)
        {
            MyFile file;

            if (typeof(TFile).IsSubclassOf(typeof(TextFile)))
            {
                file = new WinFile(CurrentPath.Join(filename));
            }
            else
            {
                file = new WinFolder(CurrentPath.Join(filename));
            }
            file.Create();
        }