File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -267,14 +267,18 @@ function with_logfile(f::Function, logfile::String)
267267end
268268
269269function prepare_for_deletion (prefix:: String )
270- for (root, dirs, files) in walkdir (prefix)
271- for d in dirs
272- # Ensure that each directory is writable by by the owning user (should be us)
273- path = joinpath (root, d)
274- try
275- chmod (path, stat (path). mode | Base. Filesystem. S_IWUSR)
276- catch
270+ # Temporarily work around walkdir bug with endless symlinks: https://github.com/JuliaLang/julia/pull/35006
271+ try
272+ for (root, dirs, files) in walkdir (prefix; follow_symlinks= false )
273+ for d in dirs
274+ # Ensure that each directory is writable by by the owning user (should be us)
275+ path = joinpath (root, d)
276+ try
277+ chmod (path, stat (path). mode | Base. Filesystem. S_IWUSR)
278+ catch
279+ end
277280 end
278281 end
282+ catch
279283 end
280284end
You can’t perform that action at this time.
0 commit comments