Skip to content

Commit 88a6d93

Browse files
committed
Fix unzip errors
1 parent 0fd7858 commit 88a6d93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/datasets/graphs/ogbdataset.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ function makedir_ogb(fullname, url, dir = nothing)
163163
cd(root_dir) # Needed since `unpack` extracts in working dir
164164
DataDeps.unpack(local_filepath)
165165
unzipped = local_filepath[1:findlast('.', local_filepath)-1]
166-
mv(unzipped, data_dir)
166+
# conditions when unzipped folder is our required data dir
167+
(unzipped == data_dir) || mv(unzipped, data_dir) # none of them are relative path
167168
for (root, dirs, files) in walkdir(data_dir)
168169
for file in files
169170
if endswith(file, r"zip|gz")

0 commit comments

Comments
 (0)