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 IoDclose(HleIoDrvFileArg HleIoDrvFileArg) { return(ParentDriver.IoDclose(HleIoDrvFileArg)); }