Esempio n. 1
0
        public File GetFile(string path)
        {
            int lastSeperator = path.LastIndexOf('/');

            if (lastSeperator < 0)
            {
                throw new ArgumentException();
            }

            string    dirPath  = path.Substring(0, lastSeperator);
            string    baseName = path.Substring(lastSeperator + 1);
            Directory dir      = GetDirectory(dirPath);

            return(dir.GetFile(baseName));
        }
Esempio n. 2
0
        public File GetFile(uint directoryKey, uint fileKey)
        {
            Directory dir = GetDirectory(directoryKey);

            return(dir.GetFile(fileKey));
        }