Commit e26b036
committed
[FS] Treat ERROR_PATH_NOT_FOUND in Win32Handler as file does not exist
If it is attempted to fetch the file-info of a file, whose parent
directory does not exist the error code is ERROR_PATH_NOT_FOUND instead
of ERROR_FILE_NOT_FOUND. The latter is only returned if a file does not
exist in an existing parent directory.
Therefore in case of ERROR_FILE_NOT_FOUND the file should just be
treated as not existing without setting an IO_ERROR.
The JDK's java.nio file-system implementation for Windows also considers
a file as absent (i.e. throws a NoSuchFileException) for both error
codes ERROR_FILE_NOT_FOUND and ERROR_PATH_NOT_FOUND.1 parent cbfee18 commit e26b036
File tree
1 file changed
+2
-1
lines changed- resources/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
0 commit comments