Exemplo n.º 1
0
        public IEnumerable <IFileEntry> List()
        {
            PreAuthenticate();

            if (!systemIO.DirectoryExists(m_path))
            {
                throw new FolderMissingException(Strings.FileBackend.FolderMissingError(m_path));
            }

            foreach (string s in systemIO.EnumerateFiles(m_path))
            {
                yield return(systemIO.FileEntry(s));
            }

            foreach (string s in systemIO.EnumerateDirectories(m_path))
            {
                yield return(systemIO.DirectoryEntry(s));
            }
        }