File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed
Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change 22![ Generic badge] ( https://img.shields.io/badge/testing_on-Win_|_Mac_|_Linux-blue.svg )
33
44
5- ** Cross-platform** functions to help ** identify** the ** reason** for the
5+ ** Cross-platform** extensions to help ** identify** the ** reason** for the
66** ` FileSystemException ` ** to occur during file operations.
77
8- <details >
9- <summary>What's the problem?</summary>
10-
11- > How to understand that the exception was thrown due to the absence of a file?
12- >
13- > For some OSs a missing file and a missing parent directory are two
14- > different problems. Other OSs see them as the same problem. Dart
15- > throws the same type of exception not only for these two errors,
16- > but also for any file errors. The exception has ` int ` error code, but the
17- > error codes are different on different OSs.
18-
19- </details >
20-
21- This library is designed to generalize error codes, reducing them to a "common
22- denominator". It interprets the ` OSError.errorCode ` value depending on the
23- current platform.
24-
25- Functions unit-tested on ** Linux** , ** Windows** and ** MacOS** . Mobile systems
26- such as ** Android** and ** iOS** have the same kernels as their desktop
27- relatives. So the error messages are almost certainly the same.
8+ Extensions were unit-tested on ** Linux** , ** Windows** and ** MacOS** .
9+ Mobile systems such as ** Android** and ** iOS** have the same kernels
10+ as their desktop relatives. So the error messages are almost certainly
11+ the same.
2812
2913
3014## isNoSuchFileOrDirectory
You can’t perform that action at this time.
0 commit comments