示例#1
0
        public static IEnumerable <HleIoDirent> ListDir(this IHleIoDriver HleIoDriver, string Path)
        {
            var HleIoDrvFileArg = new HleIoDrvFileArg("none", HleIoDriver, 0, null);
            var HleIoDirent     = default(HleIoDirent);
            var List            = new List <HleIoDirent>();

            HleIoDriver.IoDopen(HleIoDrvFileArg, Path);
            while (HleIoDriver.IoDread(HleIoDrvFileArg, &HleIoDirent) > 0)
            {
                List.Add(HleIoDirent);
            }
            HleIoDriver.IoDclose(HleIoDrvFileArg);
            return(List);
        }
示例#2
0
 public virtual int IoDclose(HleIoDrvFileArg HleIoDrvFileArg)
 {
     return(ParentDriver.IoDclose(HleIoDrvFileArg));
 }