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) {
538
538
if (entry instanceof FileEntry fileEntry ) {
539
539
// first create parent dirs
540
540
Path parent = xPath .getParent ();
541
- assert parent == null || Files .isDirectory (parent );
541
+ assert parent == null || ! Files . exists ( parent ) || Files .isDirectory (parent );
542
542
if (parent == null ) {
543
543
throw new NullPointerException ("Parent is null during extracting path." );
544
544
}
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ private Path getExtractedPath(Path path) {
534
534
if (entry instanceof FileEntry fileEntry ) {
535
535
// first create parent dirs
536
536
Path parent = xPath .getParent ();
537
- assert parent == null || Files .isDirectory (parent );
537
+ assert parent == null || ! Files . exists ( parent ) || Files .isDirectory (parent );
538
538
if (parent == null ) {
539
539
throw new NullPointerException ("Parent is null during extracting path." );
540
540
}
You can’t perform that action at this time.
0 commit comments