Skip to content

Commit c704832

Browse files
Ignore symlink errors on followSymlink by default
1 parent c4c1970 commit c704832

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

core/src/Streamly/Internal/FileSystem/DirOptions.hs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ followSymlinks x opts = opts {_followSymlinks = x}
6969
-- This option controls the behavior when encountering symlink loop errors
7070
-- during resolution.
7171
--
72-
-- When set to 'True', symlink loop errors are ignored, and the type is
73-
-- reported as not a directory. When set to 'False', the directory read
74-
-- operation fails with an error.
72+
-- When set to 'True', symlink loop errors are ignored, and the type of the
73+
-- entry is reported as not a directory. When set to 'False', the directory
74+
-- read operation fails with an error.
7575
--
76-
-- The default is 'False'.
76+
-- The default is 'True'.
7777
--
7878
-- On Windows this option has no effect as of now, symlinks are not followed to
7979
-- determine the type.
@@ -85,11 +85,11 @@ ignoreSymlinkLoops x opts = opts {_ignoreELOOP = x}
8585
-- This option controls the behavior when encountering broken symlink errors
8686
-- during resolution.
8787
--
88-
-- When set to 'True', broken symlink errors are ignored, and the type is
89-
-- reported as not a directory. When set to 'False', the directory read
90-
-- operation fails with an error.
88+
-- When set to 'True', broken symlink errors are ignored, and the type of the
89+
-- entry is reported as not a directory. When set to 'False', the directory
90+
-- read operation fails with an error.
9191
--
92-
-- The default is 'False'.
92+
-- The default is 'True'.
9393
--
9494
-- On Windows this option has no effect as of now, symlinks are not followed to
9595
-- determine the type.
@@ -101,11 +101,11 @@ ignoreMissing x opts = opts {_ignoreENOENT = x}
101101
-- This option controls the behavior when encountering permission errors
102102
-- during resolution.
103103
--
104-
-- When set to 'True', any permission errors are ignored, and the type is
105-
-- reported as not a directory. When set to 'False', the directory read
106-
-- operation fails with an error.
104+
-- When set to 'True', any permission errors are ignored, and the type of the
105+
-- entry is reported as not a directory. When set to 'False', the directory
106+
-- read operation fails with an error.
107107
--
108-
-- The default is 'False'.
108+
-- The default is 'True'.
109109
--
110110
-- On Windows this option has no effect as of now, symlinks are not followed to
111111
-- determine the type.
@@ -119,7 +119,7 @@ defaultReadOptions :: ReadOptions
119119
defaultReadOptions =
120120
ReadOptions
121121
{ _followSymlinks = False
122-
, _ignoreELOOP = False
123-
, _ignoreENOENT = False
124-
, _ignoreEACCESS = False
122+
, _ignoreELOOP = True
123+
, _ignoreENOENT = True
124+
, _ignoreEACCESS = True
125125
}

0 commit comments

Comments
 (0)