File tree Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -303,4 +303,18 @@ func TestReadDirRecursiveLoopDetection(t *testing.T) {
303303 pathEqualsTo (t , "testdata/loops/regular_2/dir2/dir1/file1" , l [4 ])
304304 pathEqualsTo (t , "testdata/loops/regular_2/dir2/file2" , l [5 ])
305305 }
306+
307+ {
308+ l , err := unbuondedReaddir ("regular_3" )
309+ require .NoError (t , err )
310+ require .Len (t , l , 7 )
311+ l .Sort ()
312+ pathEqualsTo (t , "testdata/loops/regular_3/dir1" , l [0 ])
313+ pathEqualsTo (t , "testdata/loops/regular_3/dir1/file1" , l [1 ])
314+ pathEqualsTo (t , "testdata/loops/regular_3/dir2" , l [2 ])
315+ pathEqualsTo (t , "testdata/loops/regular_3/dir2/dir1" , l [3 ])
316+ pathEqualsTo (t , "testdata/loops/regular_3/dir2/dir1/file1" , l [4 ])
317+ pathEqualsTo (t , "testdata/loops/regular_3/dir2/file2" , l [5 ])
318+ pathEqualsTo (t , "testdata/loops/regular_3/link" , l [6 ]) // broken symlink is reported in files
319+ }
306320}
Original file line number Diff line number Diff line change 1+ ../dir1
Original file line number Diff line number Diff line change 1+ broken
You can’t perform that action at this time.
0 commit comments