@@ -136,7 +136,7 @@ pub fn get_modpath(cachepath: string, d: zigmod.Dep, options: *CollectOptions) !
136136 u .fail ("fetch: git: version type '{s}' is invalid." , .{vtype });
137137 },
138138 };
139- if (try u . does_folder_exist ( pv )) {
139+ if (try extras . doesFolderExist ( null , pv )) {
140140 if (vers .id == .branch ) {
141141 if (options .update ) {
142142 try d .type .update (options .alloc , pv , d .path );
@@ -158,7 +158,7 @@ pub fn get_modpath(cachepath: string, d: zigmod.Dep, options: *CollectOptions) !
158158 try setTreeReadOnly (pvd , options .alloc );
159159 return pv ;
160160 }
161- if (! try u . does_folder_exist ( p )) {
161+ if (! try extras . doesFolderExist ( null , p )) {
162162 try d .type .pull (options .alloc , d .path , p );
163163 } else {
164164 if (options .update ) {
@@ -168,7 +168,7 @@ pub fn get_modpath(cachepath: string, d: zigmod.Dep, options: *CollectOptions) !
168168 return p ;
169169 },
170170 .hg = > {
171- if (! try u . does_folder_exist ( p )) {
171+ if (! try extras . doesFolderExist ( null , p )) {
172172 try d .type .pull (options .alloc , d .path , p );
173173 } else {
174174 if (options .update ) {
@@ -178,12 +178,12 @@ pub fn get_modpath(cachepath: string, d: zigmod.Dep, options: *CollectOptions) !
178178 return p ;
179179 },
180180 .http = > {
181- if (try u . does_folder_exist ( pv )) {
181+ if (try extras . doesFolderExist ( null , pv )) {
182182 return pv ;
183183 }
184184 const file_name = try u .last (try u .split (options .alloc , d .path , "/" ));
185185 if (d .version .len > 0 ) {
186- if (try u . does_folder_exist ( pv )) {
186+ if (try extras . doesFolderExist ( null , pv )) {
187187 return pv ;
188188 }
189189 const file_path = try std .fs .path .join (options .alloc , &.{ pv , file_name });
@@ -199,7 +199,7 @@ pub fn get_modpath(cachepath: string, d: zigmod.Dep, options: *CollectOptions) !
199199 u .fail ("{s} does not match hash {s}" , .{ d .path , d .version });
200200 return p ;
201201 }
202- if (try u . does_folder_exist ( p )) {
202+ if (try extras . doesFolderExist ( null , p )) {
203203 try std .fs .cwd ().deleteTree (p );
204204 }
205205 const file_path = try std .fs .path .resolve (options .alloc , &.{ p , file_name });
0 commit comments