Exemplo n.º 1
0
        public bool TryGetFileInfo(string subpath, out IFileInfo fileInfo)
        {
            if (InnerFileSystem.TryGetFileInfo(subpath, out fileInfo))
            {
                return(true);
            }

            string defaultPath = System.IO.Path.Combine(InnerFileSystem.Root, Default);

            return(InnerFileSystem.TryGetFileInfo(defaultPath, out fileInfo));
        }
Exemplo n.º 2
0
        public bool TryGetDirectoryContents(string subpath, out IEnumerable <IFileInfo> contents)
        {
            if (InnerFileSystem.TryGetDirectoryContents(subpath, out contents))
            {
                return(true);
            }

            string defaultPath = System.IO.Path.Combine(InnerFileSystem.Root, Default);

            return(InnerFileSystem.TryGetDirectoryContents(defaultPath, out contents));
        }