示例#1
0
 public GVector<GFileInfos> Ls()
 {
     String[] files;
     files = Directory.GetFileSystemEntries(this._directory);
     int filecount = files.GetUpperBound(0) + 1;
     GVector<GFileInfos> list = new GVector<GFileInfos>();
     int i = 0;
     while (i < filecount)
     {
         GFileInfos f = new GFileInfos(this._directory + "\\" + files[i]);
         list.PushBack(f);
         ++i;
     }
     return (list);
 }
示例#2
0
        public GVector <GFileInfos> Ls()
        {
            String[] files;
            files = Directory.GetFileSystemEntries(this._directory);
            int filecount             = files.GetUpperBound(0) + 1;
            GVector <GFileInfos> list = new GVector <GFileInfos>();
            int i = 0;

            while (i < filecount)
            {
                GFileInfos f = new GFileInfos(this._directory + "\\" + files[i]);
                list.PushBack(f);
                ++i;
            }
            return(list);
        }