boolean (@NotNull String path) { // special case: "C:!/foo" means the archive is in the disk root - we shouldn't treat it as relative path starting with "!" // other special case: "C:/!/foo" means the archive is in the disk root - we shouldn't treat it as under the (local) directory "!" in the disk root return OSAgnosticPathUtil.startsWithWindowsDrive(path) && path.length() >= 4 && (path.charAt(2) == '!' && path.charAt(3) == '/' || path.length() >= 5 && path.charAt(2) == '/' && path.charAt(3) == '!' && path.charAt(4) == '/' ); }