@@ -850,14 +850,14 @@ pub fn close(self: *Dir) void {
850850/// Deprecated in favor of `Io.Dir.openFile`.
851851pub fn openFile (self : Dir , sub_path : []const u8 , flags : File.OpenFlags ) File.OpenError ! File {
852852 var threaded : Io.Threaded = .init_single_threaded ;
853- const io = threaded .io ();
853+ const io = threaded .ioBasic ();
854854 return .adaptFromNewApi (try Io .Dir .openFile (self .adaptToNewApi (), io , sub_path , flags ));
855855}
856856
857857/// Deprecated in favor of `Io.Dir.createFile`.
858858pub fn createFile (self : Dir , sub_path : []const u8 , flags : File.CreateFlags ) File.OpenError ! File {
859859 var threaded : Io.Threaded = .init_single_threaded ;
860- const io = threaded .io ();
860+ const io = threaded .ioBasic ();
861861 const new_file = try Io .Dir .createFile (self .adaptToNewApi (), io , sub_path , flags );
862862 return .adaptFromNewApi (new_file );
863863}
@@ -868,7 +868,7 @@ pub const MakeError = Io.Dir.MakeError;
868868/// Deprecated in favor of `Io.Dir.makeDir`.
869869pub fn makeDir (self : Dir , sub_path : []const u8 ) MakeError ! void {
870870 var threaded : Io.Threaded = .init_single_threaded ;
871- const io = threaded .io ();
871+ const io = threaded .ioBasic ();
872872 return Io .Dir .makeDir (.{ .handle = self .fd }, io , sub_path );
873873}
874874
@@ -895,14 +895,14 @@ pub const MakePathError = Io.Dir.MakePathError;
895895/// Deprecated in favor of `Io.Dir.makePathStatus`.
896896pub fn makePathStatus (self : Dir , sub_path : []const u8 ) MakePathError ! MakePathStatus {
897897 var threaded : Io.Threaded = .init_single_threaded ;
898- const io = threaded .io ();
898+ const io = threaded .ioBasic ();
899899 return Io .Dir .makePathStatus (.{ .handle = self .fd }, io , sub_path );
900900}
901901
902902/// Deprecated in favor of `Io.Dir.makeOpenPath`.
903903pub fn makeOpenPath (dir : Dir , sub_path : []const u8 , options : OpenOptions ) Io.Dir.MakeOpenPathError ! Dir {
904904 var threaded : Io.Threaded = .init_single_threaded ;
905- const io = threaded .io ();
905+ const io = threaded .ioBasic ();
906906 return .adaptFromNewApi (try Io .Dir .makeOpenPath (dir .adaptToNewApi (), io , sub_path , options ));
907907}
908908
@@ -1071,7 +1071,7 @@ pub const OpenOptions = Io.Dir.OpenOptions;
10711071/// Deprecated in favor of `Io.Dir.openDir`.
10721072pub fn openDir (self : Dir , sub_path : []const u8 , args : OpenOptions ) OpenError ! Dir {
10731073 var threaded : Io.Threaded = .init_single_threaded ;
1074- const io = threaded .io ();
1074+ const io = threaded .ioBasic ();
10751075 return .adaptFromNewApi (try Io .Dir .openDir (.{ .handle = self .fd }, io , sub_path , args ));
10761076}
10771077
@@ -1385,7 +1385,7 @@ pub fn readLinkW(self: Dir, sub_path_w: []const u16, buffer: []u8) ![]u8 {
13851385/// Deprecated in favor of `Io.Dir.readFile`.
13861386pub fn readFile (self : Dir , file_path : []const u8 , buffer : []u8 ) ! []u8 {
13871387 var threaded : Io.Threaded = .init_single_threaded ;
1388- const io = threaded .io ();
1388+ const io = threaded .ioBasic ();
13891389 return Io .Dir .readFile (.{ .handle = self .fd }, io , file_path , buffer );
13901390}
13911391
@@ -1438,7 +1438,7 @@ pub fn readFileAllocOptions(
14381438 comptime sentinel : ? u8 ,
14391439) ReadFileAllocError ! (if (sentinel ) | s | [:s ]align (alignment .toByteUnits ()) u8 else []align (alignment .toByteUnits ()) u8 ) {
14401440 var threaded : Io.Threaded = .init_single_threaded ;
1441- const io = threaded .io ();
1441+ const io = threaded .ioBasic ();
14421442
14431443 var file = try dir .openFile (sub_path , .{});
14441444 defer file .close ();
@@ -1893,7 +1893,7 @@ pub const AccessError = Io.Dir.AccessError;
18931893/// Deprecated in favor of `Io.Dir.access`.
18941894pub fn access (self : Dir , sub_path : []const u8 , options : Io.Dir.AccessOptions ) AccessError ! void {
18951895 var threaded : Io.Threaded = .init_single_threaded ;
1896- const io = threaded .io ();
1896+ const io = threaded .ioBasic ();
18971897 return Io .Dir .access (self .adaptToNewApi (), io , sub_path , options );
18981898}
18991899
@@ -1929,7 +1929,7 @@ pub fn copyFile(
19291929 options : CopyFileOptions ,
19301930) CopyFileError ! void {
19311931 var threaded : Io.Threaded = .init_single_threaded ;
1932- const io = threaded .io ();
1932+ const io = threaded .ioBasic ();
19331933
19341934 const file = try source_dir .openFile (source_path , .{});
19351935 var file_reader : File.Reader = .init (.{ .handle = file .handle }, io , &.{});
@@ -1997,7 +1997,7 @@ pub const StatFileError = File.OpenError || File.StatError || posix.FStatAtError
19971997/// Deprecated in favor of `Io.Dir.statPath`.
19981998pub fn statFile (self : Dir , sub_path : []const u8 ) StatFileError ! Stat {
19991999 var threaded : Io.Threaded = .init_single_threaded ;
2000- const io = threaded .io ();
2000+ const io = threaded .ioBasic ();
20012001 return Io .Dir .statPath (.{ .handle = self .fd }, io , sub_path , .{});
20022002}
20032003
0 commit comments