Exemplo n.º 1
0
        public virtual object getChildren(ScriptContext context)
        {
            if (CurrentAsPathName)
            {
                return(this.getPath(context));
            }

            if (validInternal())
            {
                var di = new RecursiveDirectoryIterator(context, true)
                {
                    fs_info  = this.dir_enumerator.Current,
                    sub_path = this.SubPathname,
                    flags    = DefaultFlags,
                };
                di.CreateEnumeratorInternal();
                return(di);
            }

            return(null);
        }
Exemplo n.º 2
0
        public virtual object getChildren(ScriptContext context)
        {
            if (CurrentAsPathName)
                return this.getPath(context);

            if (validInternal())
            {
                var di = new RecursiveDirectoryIterator(context, true)
                {
                    fs_info = this.dir_enumerator.Current,
                    sub_path = this.SubPathname,
                    flags = DefaultFlags,
                };
                di.CreateEnumeratorInternal();
                return di;
            }

            return null;
        }