File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -538,7 +538,7 @@ private Path getExtractedPath(Path path) {
538538 if (entry instanceof FileEntry fileEntry ) {
539539 // first create parent dirs
540540 Path parent = xPath .getParent ();
541- assert parent == null || Files .isDirectory (parent );
541+ assert parent == null || ! Files . exists ( parent ) || Files .isDirectory (parent );
542542 if (parent == null ) {
543543 throw new NullPointerException ("Parent is null during extracting path." );
544544 }
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ private Path getExtractedPath(Path path) {
534534 if (entry instanceof FileEntry fileEntry ) {
535535 // first create parent dirs
536536 Path parent = xPath .getParent ();
537- assert parent == null || Files .isDirectory (parent );
537+ assert parent == null || ! Files . exists ( parent ) || Files .isDirectory (parent );
538538 if (parent == null ) {
539539 throw new NullPointerException ("Parent is null during extracting path." );
540540 }
You can’t perform that action at this time.
0 commit comments