File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 562562
563563Base. download (url:: AbstractPath , localfile:: AbstractPath ) = cp (url, localfile; force= true )
564564
565+ function Base. download (url:: AbstractPath , localfile:: AbstractString )
566+ download (url, Path (localfile))
567+ return localfile
568+ end
569+
565570"""
566571 readpath(fp::P) where {P <: AbstractPath} -> Vector{P}
567572"""
Original file line number Diff line number Diff line change @@ -761,7 +761,10 @@ module TestPaths
761761 download (ps. foo / " README.md" , ps. qux / " README.md" )
762762 @test exists (ps. qux / " README.md" )
763763
764- rm .([ps. foo / " README.md" , ps. qux / " README.md" ])
764+ # Test downloading to a string
765+ download (ps. foo / " README.md" , string (ps. fred / " README.md" ))
766+ @test exists (ps. fred / " README.md" )
767+ rm .([ps. foo / " README.md" , ps. qux / " README.md" , ps. fred / " README.md" ])
765768 end
766769 end
767770
You can’t perform that action at this time.
0 commit comments