Esempio n. 1
0
        public virtual FSDirectory GetDirectory(string path)
        {
            FSObject o = GetObject(path);

            if (o is FSDirectory)
            {
                return(o as FSDirectory);
            }
            throw new Exception("DiretoryNotFound");
        }
Esempio n. 2
0
        public virtual FSFile GetFile(string path)
        {
            FSObject o = GetObject(path);

            if (o is FSFile)
            {
                return(o as FSFile);
            }
            throw new Exception("FileNotFound");
        }