Esempio n. 1
0
        public static IEnumerable <IFileSystemInfo> GetChildren(this MapleFileSystemContainerBase directory, IDepth depth, IMessenger messenger, ILoggingService log)
        {
            var result = new List <IFileSystemInfo>();

            if (!CanAccess(directory.FullName, log) && directory.DirectoryIsEmpty())
            {
                return(result);
            }

            result.AddRange(GetDirectories(directory.FullName, depth, directory, messenger, log));
            result.AddRange(GetFiles(directory.FullName, depth, directory, messenger, log));

            return(result);
        }
Esempio n. 2
0
        public static List <IFileSystemInfo> GetChildren(this MapleFileSystemContainerBase directory, IDepth depth)
        {
            var result = new List <IFileSystemInfo>();

            if (!CanAccess(directory.FullName) && directory.DirectoryIsEmpty())
            {
                return(result);
            }

            result.AddRange(GetDirectories(directory.FullName, depth, directory));
            result.AddRange(GetFiles(directory.FullName, depth, directory));

            return(result);
        }