Exemplo n.º 1
0
        public List <IVirtualFile> LoadFiles()
        {
            List <IVirtualFile> res = new List <IVirtualFile>();

            if (!Directory.Exists(m_folderPath))
            {
                return(res);
            }
            foreach (string file in Directory.GetFiles(m_folderPath))
            {
                if (IOTool.FileIsLink(file))
                {
                    if (!IOTool.FileLinkExists(file))
                    {
                        continue;
                    }
                }
                res.Add(new DiskFile(m_fileSystem, IOTool.RelativePathTo(m_fileSystem.RootPath, file)));
            }
            return(res);
        }