Skip to content

Commit ec22a07

Browse files
committed
Update file_system.dart
1 parent 970a480 commit ec22a07

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkgs/io_file/lib/src/file_system.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,11 @@ abstract class FileSystem {
228228
/// Returns `true` if a file, directory, or link exists at the given path,
229229
/// and `false` otherwise.
230230
///
231-
/// If `path` is a symbolic link, `exists` returns `true` even if the link
232-
/// is broken (i.e. the target of the link does not exist).
231+
/// If `path` is a symbolic link, `exists` returns `false` if the link is
232+
/// broken (i.e. the target of the link does not exist).
233+
///
234+
/// On Windows, calling `exists` on a named pipe may cause the server to close
235+
/// it.
233236
bool exists(String path);
234237

235238
/// TODO(brianquinlan): Add an `exists` method that can determine if a file

0 commit comments

Comments
 (0)