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); }
public virtual int IoDread(HleIoDrvFileArg HleIoDrvFileArg, HleIoDirent *dir) { return(ParentDriver.IoDread(HleIoDrvFileArg, dir)); }