File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
turbopack/crates/turbo-tasks-fs/src Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -407,23 +407,19 @@ impl DiskFileSystemInner {
407407 |fs_context| fs_context. created_directories . contains ( directory) ,
408408 ) ;
409409 if !already_created {
410- let func = {
411- move |p : & Path | -> io:: Result < ( ) > {
412- std:: fs:: create_dir_all ( p) ?;
413- let path_buf = p. to_path_buf ( ) ;
414- ApplyEffectContext :: with ( |fs_context : & mut DiskFileSystemApplyContext | {
415- fs_context. created_directories . insert ( path_buf)
416- } ) ;
417- Ok ( ( ) )
418- }
419- } ;
410+ let func = |p : & Path | std:: fs:: create_dir_all ( p) ;
420411 retry_blocking ( directory, func)
421412 . concurrency_limited ( & self . semaphore )
422413 . instrument ( tracing:: info_span!(
423414 "create directory" ,
424415 path = display( directory. display( ) )
425416 ) )
426417 . await ?;
418+ ApplyEffectContext :: with ( |fs_context : & mut DiskFileSystemApplyContext | {
419+ fs_context
420+ . created_directories
421+ . insert ( directory. to_path_buf ( ) )
422+ } ) ;
427423 }
428424 Ok ( ( ) )
429425 }
You can’t perform that action at this time.
0 commit comments