tecosaur / DataToolkit.jl

Reproducible, flexible, and convenient data management
https://tecosaur.github.io/DataToolkit.jl
87 stars 4 forks source link

Access a file as a path, without a loader #22

Closed asinghvi17 closed 4 months ago

asinghvi17 commented 5 months ago

I was looking at using DataToolkit to manage external data in package tests, and was wondering if it's possible to have it return a file path or something? I need the file path specifically to point my package to it.

The rest of the data management tools are pretty slick!

tecosaur commented 5 months ago

wondering if it's possible to have it return a file path or something?

Absolutely! Give this pattern a shot: open(dataset("..."), DataToolkit.FilePath).path

tecosaur commented 3 months ago

FYI once a6bb5a9bcd7e91d2e97c167305c1d6c28efdcf1e makes it into the next release, you'll be able to open a DataSet to a FilePathsBase.AbstractPath :slightly_smiling_face: