You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
Copy file name to clipboardExpand all lines: resources/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/Win32Handler.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,8 @@ public FileInfo fetchFileInfo(String fileName) {
0 commit comments